|
||||||||||
| 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.AddAbstractMethod
public class AddAbstractMethod
Adds an abstract method to the class
| Field Summary | |
|---|---|
protected MethodSummary |
methodSummary
Description of the Field |
| Constructor Summary | |
|---|---|
AddAbstractMethod(MethodSummary init)
Constructor for the AddAbstractMethod 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 AddAbstractMethod(MethodSummary init)
init - The signature of the method that we are adding| Method Detail |
|---|
protected void copyModifiers(net.sourceforge.jrefactory.ast.ModifierHolder source,
net.sourceforge.jrefactory.ast.ModifierHolder dest)
copyModifiers in class TransformASTsource - the source holderdest - the destination holderprotected boolean isAbstract()
public void update(net.sourceforge.jrefactory.ast.SimpleNode root)
update in class TransformASTroot - the root of the syntax tree
protected 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 | |||||||||