Top Method Summary
Options Name Purpose
InsertAfterNode (JPNode, character) Inserts the given text before the given JPNode
InsertBeforeNode (JPNode, 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 (JPNode, character) Replaces the contents of the given JPNode instance including all it's Children
ReplaceNodeContent (JPNode, character) Replaces the contents of the given JPNode 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
RefactorSession (ParseUnit) Constructor for the RefactorSession class

Top Property Summary
Options Name Purpose
CHARACTER FileName
LOGICAL HasTasks
org.prorefactor.treeparser.ParseUnit ParseUnit
LOGICAL Refactored


Method Detail
Top

InsertAfterNode (JPNode, character)

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

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to replace
pcNewText CHARACTER
The new text for the node
Top

InsertBeforeNode (JPNode, character, logical)

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

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode 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

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

PerformRefactor ()

Purpose: Performs the modifications of the file contents
Notes:

Top

ReplaceAllNodeContent (JPNode, character)

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

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to replace
pcNewText CHARACTER
The new text for the node
Top

ReplaceNodeContent (JPNode, character)

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

Parameters:
poNode org.prorefactor.core.JPNode
The JPNode to replace
pcNewText CHARACTER
The new text for the node
Top

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

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

RefactorSession (ParseUnit)

Purpose: Constructor for the RefactorSession class
Notes:

Parameters:
poParseUnit org.prorefactor.treeparser.ParseUnit
The ProParse Unit to refactor


Property Detail
Top

CHARACTER FileName


Returns CHARACTER
Top

LOGICAL HasTasks


Returns LOGICAL
Top

org.prorefactor.treeparser.ParseUnit ParseUnit


Returns org.prorefactor.treeparser.ParseUnit
Top

LOGICAL Refactored


Returns LOGICAL


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:30:06