gov.llnl.babel.ast
Class Method
java.lang.Object
gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.Method
- All Implemented Interfaces:
- IAttributable, INameable, INameableStruct
public class Method
- extends ASTNode
- implements INameable, IAttributable, INameableStruct
Has a name, inheritance hierarchy, return type, argument list, exception
list, and is embedded in a 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.
Methods inherited from class gov.llnl.babel.ast.ASTNode |
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
d_name
protected MethodName d_name
d_attribList
protected AttributeList d_attribList
d_returnType
protected Type d_returnType
d_comment
protected DocComment d_comment
d_argList
protected ArgumentList d_argList
d_throwsList
protected ThrowsList d_throwsList
d_from
protected FromClause d_from
d_requires
protected Requires d_requires
d_ensures
protected Ensures d_ensures
d_splicers
protected SplicerList d_splicers
d_name2
protected Name d_name2
Method
public Method(ParseTreeNode src,
ASTNode parent)
Method
public Method()
accept
public java.lang.Object accept(Visitor v,
java.lang.Object data)
- Description copied from class:
ASTNode
- implements "Visitor Pattern"
- Specified by:
accept
in class ASTNode
- Parameters:
v
- The visitor classdata
- Optional extra data
- Returns:
- Optional extra data
getName
public Name getName()
- Specified by:
getName
in interface INameable
setName
public void setName(Name name)
- Specified by:
setName
in interface INameable
getMethodName
public MethodName getMethodName()
setMethodName
public void setMethodName(MethodName name)
getAttributeList
public AttributeList getAttributeList()
- Specified by:
getAttributeList
in interface IAttributable
setAttributeList
public void setAttributeList(AttributeList attrib)
- Specified by:
setAttributeList
in interface IAttributable
getArgumentList
public ArgumentList getArgumentList()
setArgumentList
public void setArgumentList(ArgumentList argList)
getThrowsList
public ThrowsList getThrowsList()
setThrowsList
public void setThrowsList(ThrowsList throwsList)
getName2
public Name getName2()
- Specified by:
getName2
in interface INameableStruct
setName2
public void setName2(Name name2)
- Specified by:
setName2
in interface INameableStruct
getReturnType
public Type getReturnType()
setReturnType
public void setReturnType(Type t)
hasDocComment
public boolean hasDocComment()
getDocComment
public DocComment getDocComment()
setDocComment
public void setDocComment(java.lang.String text)
setFromClause
public void setFromClause(FromClause from)
getFromClause
public FromClause getFromClause()
isRenamedFromAncestor
public boolean isRenamedFromAncestor()
getRequires
public Requires getRequires()
getEnsures
public Ensures getEnsures()
setRequires
public void setRequires(Requires requires)
setEnsures
public void setEnsures(Ensures ensures)
addSplicerBlock
public void addSplicerBlock(SplicerBlock block)
getSplicerList
public SplicerList getSplicerList()