Namespace: Consultingwerk.Studio.Refactor
Class 
MethodRefactor Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

Purpose: Inserts source code into an existing method
Notes:



Top Method Summary
Options Name Purpose
# InsertAsFirstStatement (RefactorSession, JPNode, longchar) Inserts source code as the first statement in the method
# InsertBeforeEndMethod (RefactorSession, JPNode, longchar) Inserts source code before the end method statement of a method
+ InsertIntoMethod (ClassName, character, longchar, InsertCodePositionEnum) Inserts source code into an existing method


Method Detail
Top

PROTECTED InsertAsFirstStatement (RefactorSession, JPNode, longchar)

Purpose: Inserts source code as the first statement in the method
Notes:

Parameters:
poRefactorSession Consultingwerk.Studio.SmartRefactor.RefactorSession
The RefactorSession
poMethodNode org.prorefactor.core.JPNode
The JSNode representing a method
pcCode LONGCHAR
The source code to insert
Top

PROTECTED InsertBeforeEndMethod (RefactorSession, JPNode, longchar)

Purpose: Inserts source code before the end method statement of a method
Notes:

Parameters:
poRefactorSession Consultingwerk.Studio.SmartRefactor.RefactorSession
The RefactorSession
poMethodNode org.prorefactor.core.JPNode
The JSNode representing a method
pcCode LONGCHAR
The source code to insert
Top

PUBLIC InsertIntoMethod (ClassName, character, longchar, InsertCodePositionEnum)

Purpose: Inserts source code into an existing method
Notes:

Parameters:
poClassName Consultingwerk.ClassName
The name of the class
pcMethodName CHARACTER
The name of the method
pcCode LONGCHAR
The source code to insert
poPosition Consultingwerk.Studio.Refactor.InsertCodePositionEnum
The position to insert the code


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 19:02:53