gov.llnl.babel.ast
Class Argument
java.lang.Object
   gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.ASTNode
       gov.llnl.babel.ast.Argument
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.
 
 
 
 
| 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_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
Argument
public Argument(ParseTreeNode src,
                ASTNode parent)
getMode
public java.lang.String getMode()
- 
 
- 
 
getName2
public Name getName2()
- 
- Specified by:
- getName2in interface- INameableStruct
 
- 
 
setName2
public void setName2(Name name2)
- 
- Specified by:
- setName2in interface- INameableStruct
 
- 
 
setMode
public boolean setMode(java.lang.String mode)
- 
 
- 
 
getName
public Name getName()
- 
- Specified by:
- getNamein interface- INameable
 
- 
 
setName
public void setName(Name name)
- 
- Specified by:
- setNamein interface- INameable
 
- 
 
getAttributeList
public AttributeList getAttributeList()
- 
- Specified by:
- getAttributeListin interface- IAttributable
 
- 
 
setAttributeList
public void setAttributeList(AttributeList attrib)
- 
- Specified by:
- setAttributeListin 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:
- acceptin class- ASTNode
 
- 
- Parameters:
- v- The visitor class
- data- Optional extra data
- Returns:
- Optional extra data