public class Method extends ASTNode implements INameable, IAttributable, INameableStruct
Class
or Interface
NOTE: In this case, name is special in that name may be fullName, shortName,
extension, etc. by default, name == fullName since this is what is subject
to collision detection.Modifier and Type | Field and Description |
---|---|
protected ArgumentList |
d_argList |
protected AttributeList |
d_attribList |
protected DocComment |
d_comment |
protected Ensures |
d_ensures |
protected FromClause |
d_from |
protected MethodName |
d_name |
protected Name |
d_name2 |
protected Requires |
d_requires |
protected Type |
d_returnType |
protected SplicerList |
d_splicers |
protected ThrowsList |
d_throwsList |
ILLEGAL_NODEID
Constructor and Description |
---|
Method() |
Method(ParseTreeNode src,
ASTNode parent) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(Visitor v,
java.lang.Object data)
implements "Visitor Pattern"
|
void |
addSplicerBlock(SplicerBlock block) |
ArgumentList |
getArgumentList() |
AttributeList |
getAttributeList() |
DocComment |
getDocComment() |
Ensures |
getEnsures() |
FromClause |
getFromClause() |
MethodName |
getMethodName() |
Name |
getName() |
Name |
getName2() |
Requires |
getRequires() |
Type |
getReturnType() |
SplicerList |
getSplicerList() |
ThrowsList |
getThrowsList() |
boolean |
hasDocComment() |
boolean |
isRenamedFromAncestor() |
void |
setArgumentList(ArgumentList argList) |
void |
setAttributeList(AttributeList attrib) |
void |
setDocComment(java.lang.String text) |
void |
setEnsures(Ensures ensures) |
void |
setFromClause(FromClause from) |
void |
setMethodName(MethodName name) |
void |
setName(Name name) |
void |
setName2(Name name2) |
void |
setRequires(Requires requires) |
void |
setReturnType(Type t) |
void |
setThrowsList(ThrowsList throwsList) |
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry
protected MethodName d_name
protected AttributeList d_attribList
protected Type d_returnType
protected DocComment d_comment
protected ArgumentList d_argList
protected ThrowsList d_throwsList
protected FromClause d_from
protected Requires d_requires
protected Ensures d_ensures
protected SplicerList d_splicers
protected Name d_name2
public Method(ParseTreeNode src, ASTNode parent)
public Method()
public java.lang.Object accept(Visitor v, java.lang.Object data)
ASTNode
public MethodName getMethodName()
public void setMethodName(MethodName name)
public AttributeList getAttributeList()
getAttributeList
in interface IAttributable
public void setAttributeList(AttributeList attrib)
setAttributeList
in interface IAttributable
public ArgumentList getArgumentList()
public void setArgumentList(ArgumentList argList)
public ThrowsList getThrowsList()
public void setThrowsList(ThrowsList throwsList)
public Name getName2()
getName2
in interface INameableStruct
public void setName2(Name name2)
setName2
in interface INameableStruct
public Type getReturnType()
public void setReturnType(Type t)
public boolean hasDocComment()
public DocComment getDocComment()
public void setDocComment(java.lang.String text)
public void setFromClause(FromClause from)
public FromClause getFromClause()
public boolean isRenamedFromAncestor()
public Requires getRequires()
public Ensures getEnsures()
public void setRequires(Requires requires)
public void setEnsures(Ensures ensures)
public void addSplicerBlock(SplicerBlock block)
public SplicerList getSplicerList()