|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.refactor.TransformAST
org.acm.seguin.refactor.method.AddConcreteMethod
public class AddConcreteMethod
Adds a concrete method to a class
Field Summary | |
---|---|
protected MethodSummary |
methodSummary
Description of the Field |
Constructor Summary | |
---|---|
AddConcreteMethod(MethodSummary init)
Constructor for the AddConcreteMethod object |
Method Summary | |
---|---|
protected void |
addBody(net.sourceforge.jrefactory.ast.SimpleNode methodDecl,
int index)
Adds the body of the method |
protected int |
addExceptions(net.sourceforge.jrefactory.ast.SimpleNode methodDecl,
int index)
Adds the exceptions to the node |
protected void |
addReturn(net.sourceforge.jrefactory.ast.SimpleNode methodDecl,
int index)
Adds the return to the method declaration |
protected void |
copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source,
net.sourceforge.jrefactory.ast.ModifierHolder dest)
Sets up the modifiers |
protected net.sourceforge.jrefactory.ast.ASTNameList |
createExceptions(java.util.Iterator iter)
Creates the exceptions |
protected net.sourceforge.jrefactory.ast.ASTFormalParameters |
createParameters()
Creates the parameters |
protected boolean |
isAbstract()
Determines if the method is abstract |
void |
update(net.sourceforge.jrefactory.ast.SimpleNode root)
Update the syntax tree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MethodSummary methodSummary
Constructor Detail |
---|
public AddConcreteMethod(MethodSummary init)
init
- Description of ParameterMethod Detail |
---|
protected void copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source, net.sourceforge.jrefactory.ast.ModifierHolder dest)
copyModifiers
in class TransformAST
source
- the source holderdest
- the destination holderprotected boolean isAbstract()
public void update(net.sourceforge.jrefactory.ast.SimpleNode root)
update
in class TransformAST
root
- the root of the syntax treeprotected void addReturn(net.sourceforge.jrefactory.ast.SimpleNode methodDecl, int index)
methodDecl
- The feature to be added to the Return attributeindex
- The feature to be added to the Return attributeprotected net.sourceforge.jrefactory.ast.ASTFormalParameters createParameters()
protected net.sourceforge.jrefactory.ast.ASTNameList createExceptions(java.util.Iterator iter)
iter
- Description of Parameter
protected int addExceptions(net.sourceforge.jrefactory.ast.SimpleNode methodDecl, int index)
methodDecl
- The feature to be added to the Exceptions attributeindex
- The feature to be added to the Exceptions attribute
protected void addBody(net.sourceforge.jrefactory.ast.SimpleNode methodDecl, int index)
methodDecl
- The feature to be added to the Body attributeindex
- The feature to be added to the Body attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |