| java.lang.Object org.acm.seguin.refactor.TransformAST org.acm.seguin.refactor.method.AddConstructor
AddConstructor | public class AddConstructor extends TransformAST (Code) | | A series of transformations taht adds a new constructor to a class.
The constructor invokes the super classes's constructor. This
object shares a lot in common with the AddNewMethod class, and
combining these two objects can be considered for future refactorings.
author: Chris Seguin |
AddConstructor | public AddConstructor(MethodSummary init, String name)(Code) | | Constructor for the AddConstructor object
Parameters: init - the method summary to add |
addBody | protected void addBody(SimpleNode methodDecl, int index)(Code) | | Adds the body of the method
Parameters: methodDecl - The feature to be added to the Body attribute Parameters: index - The feature to be added to the Body attribute |
addExceptions | protected int addExceptions(SimpleNode methodDecl, int index)(Code) | | Adds the exceptions to the node
Parameters: methodDecl - The feature to be added to the Exceptions attribute Parameters: index - The feature to be added to the Exceptions attribute Description of the Returned Value |
addReturn | protected void addReturn(SimpleNode methodDecl, int index)(Code) | | Adds the return to the method declaration
Parameters: methodDecl - The feature to be added to the Return attribute Parameters: index - The feature to be added to the Return attribute |
createExceptions | protected ASTNameList createExceptions(Iterator iter)(Code) | | Creates the exceptions
Parameters: iter - Description of Parameter Description of the Returned Value |
createParameters | protected ASTFormalParameters createParameters()(Code) | | Creates the parameters
Description of the Returned Value |
isAbstract | protected boolean isAbstract()(Code) | | Determines if the method is abstract
true if the method is abstract |
update | public void update(SimpleNode root)(Code) | | Update the syntax tree
Parameters: root - the root of the syntax tree |
|
|