Top Method Summary
Options Name Purpose
+ InsertAfterNode (INode, character) Inserts the given text before the given INode
+ InsertBeforeNode (INode, character, logical) Inserts the given text before the given JPNode
# InsertRefactorTask (integer, integer, character, logical) Registers a location in the source for replacement
# PerformRefactor () Performs the modifications of the file contents
+ ReplaceAllNodeContent (INode, character) Replaces the contents of the given INode instance including all it's Children
+ ReplaceNodeContent (INode, character) Replaces the contents of the given INode instance
+ LOGICAL Save () Saves the contents of the RefactorSession to the original file name
+ LOGICAL Save (character) Saves the contents of the RefactorSession to a file

Top Constructor Summary
Options Name Purpose
+ RefactorSession2 (IParseUnit) Constructor for the RefactorSession2 class

Top Property Summary
Options Name Purpose
+ CHARACTER FileName
+ LOGICAL HasTasks
+ Consultingwerk.Studio.ProparseApi.IParseUnit ParseUnit
+ LOGICAL Refactored


Method Detail
Top

PUBLIC InsertAfterNode (INode, character)

Purpose: Inserts the given text before the given INode
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The INode to replace
pcNewText CHARACTER
The new text for the node
Top

PUBLIC InsertBeforeNode (INode, character, logical)

Purpose: Inserts the given text before the given JPNode
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The INode to replace
pcNewText CHARACTER
The new text for the node
plStartOfLine LOGICAL
Logical value indicating if the text should be inserted at the beginning of the line or just before the JPNode position
Top

PROTECTED InsertRefactorTask (integer, integer, character, logical)

Purpose: Registers a location in the source for replacement
Notes:

Parameters:
piOffsetFrom INTEGER
The starting offset to replace
piOffsetTo INTEGER
The ending offset to replace
pcNewText CHARACTER
The new text to insert
plReplaceOrInsert LOGICAL
Logical value if text should be replace the offset (true) or be inserted at the offset (false)
Top

PROTECTED PerformRefactor ()

Purpose: Performs the modifications of the file contents
Notes:

Top

PUBLIC ReplaceAllNodeContent (INode, character)

Purpose: Replaces the contents of the given INode instance including all it's
Children
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The INode to replace
pcNewText CHARACTER
The new text for the node
Top

PUBLIC ReplaceNodeContent (INode, character)

Purpose: Replaces the contents of the given INode instance
Notes:

Parameters:
poNode Consultingwerk.Studio.ProparseApi.INode
The INode to replace
pcNewText CHARACTER
The new text for the node
Top

PUBLIC LOGICAL Save ()

Purpose: Saves the contents of the RefactorSession to the original file name
Notes:

Returns LOGICAL
Logical value indicating the success of the method
Top

PUBLIC LOGICAL Save (character)

Purpose: Saves the contents of the RefactorSession to a file
Notes:

Parameters:
pcFileName CHARACTER
The name of the file to save to
Returns LOGICAL
Logical value indicating the success of the method


Constructor Detail
Top

PUBLIC RefactorSession2 (IParseUnit)

Purpose: Constructor for the RefactorSession2 class
Notes:

Parameters:
poParseUnit Consultingwerk.Studio.ProparseApi.IParseUnit
The ProParse Unit to refactor


Property Detail
Top

PUBLIC CHARACTER FileName


Returns CHARACTER
Top

PUBLIC LOGICAL HasTasks


Returns LOGICAL
Top

PUBLIC Consultingwerk.Studio.ProparseApi.IParseUnit ParseUnit


Returns Consultingwerk.Studio.ProparseApi.IParseUnit
Top

PUBLIC LOGICAL Refactored


Returns LOGICAL


©2006-2025 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       20.01.2025 18:47:04