gov.llnl.babel.ast
Class Method

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by 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.


Field Summary
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
           
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
Method()
           
Method(ParseTreeNode src, ASTNode parent)
           
 
Method Summary
 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)
           
 
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
 

Field Detail

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
Constructor Detail

Method

public Method(ParseTreeNode src,
              ASTNode parent)

Method

public Method()
Method Detail

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 class
data - 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()