gov.llnl.babel.ast
Class Argument

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by gov.llnl.babel.ast.Argument
All Implemented Interfaces:
IAttributable, INameable, INameableStruct

public class Argument
extends ASTNode
implements INameable, IAttributable, INameableStruct

Unit of transfer in a method, holding the doccomment, attributes, mode, type, and variable name.


Field Summary
protected  AttributeList d_attribList
           
protected  DocComment d_comment
           
protected  java.lang.String d_mode
           
protected  Name d_name
           
protected  Name d_name2
           
protected  Type d_type
           
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
Argument(ParseTreeNode src, ASTNode parent)
           
 
Method Summary
 java.lang.Object accept(Visitor v, java.lang.Object data)
          implements "Visitor Pattern"
 AttributeList getAttributeList()
           
 DocComment getDocComment()
           
 java.lang.String getMode()
           
 Name getName()
           
 Name getName2()
           
 Type getType()
           
 boolean hasDocComment()
           
 void setAttributeList(AttributeList attrib)
           
 void setDocComment(java.lang.String text)
           
 boolean setMode(java.lang.String mode)
           
 void setName(Name name)
           
 void setName2(Name name2)
           
 void setType(Type type)
           
 
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_comment

protected DocComment d_comment

d_attribList

protected AttributeList d_attribList

d_mode

protected java.lang.String d_mode

d_type

protected Type d_type

d_name

protected Name d_name

d_name2

protected Name d_name2
Constructor Detail

Argument

public Argument(ParseTreeNode src,
                ASTNode parent)
Method Detail

getMode

public java.lang.String getMode()

getName2

public Name getName2()
Specified by:
getName2 in interface INameableStruct

setName2

public void setName2(Name name2)
Specified by:
setName2 in interface INameableStruct

setMode

public boolean setMode(java.lang.String mode)

getName

public Name getName()
Specified by:
getName in interface INameable

setName

public void setName(Name name)
Specified by:
setName in interface INameable

getAttributeList

public AttributeList getAttributeList()
Specified by:
getAttributeList in interface IAttributable

setAttributeList

public void setAttributeList(AttributeList attrib)
Specified by:
setAttributeList in interface IAttributable

hasDocComment

public boolean hasDocComment()

getDocComment

public DocComment getDocComment()

setDocComment

public void setDocComment(java.lang.String text)

getType

public Type getType()

setType

public void setType(Type type)

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