gov.llnl.babel.ast
Class Method

java.lang.Object
  extended bygov.llnl.babel.ast.ASTNode
      extended bygov.llnl.babel.ast.Method
All Implemented Interfaces:
IAttributable, INameable

public class Method
extends ASTNode
implements INameable, IAttributable

Has a name, inheritance heirarchy, 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  Requires d_requires
           
protected  Type d_returnType
           
protected  ThrowsList d_throwsList
           
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
d_firstToken, d_lastToken, d_parent, d_src, d_symbol
 
Constructor Summary
Method()
           
Method(ParseTreeNode src, ASTNode parent)
           
 
Method Summary
 java.lang.Object accept(Visitor v, java.lang.Object data)
          implements "Visitor Pattern"
 ArgumentList getArgumentList()
           
 AttributeList getAttributeList()
           
 DocComment getDocComment()
           
 Ensures getEnsures()
           
 FromClause getFromClause()
           
 MethodName getMethodName()
           
 Name getName()
           
 Requires getRequires()
           
 Type getReturnType()
           
 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 setRequires(Requires requires)
           
 void setReturnType(Type t)
           
 void setThrowsList(ThrowsList throwsList)
           
 
Methods inherited from class gov.llnl.babel.ast.ASTNode
getFilename, getFirstToken, getLastToken, getParent, getParseTreeNode, getSymbolTableEntry, setParent, setParserTreeNode, 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
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)

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)