gov.llnl.babel.ast
Class Package
java.lang.Object
gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.Type
gov.llnl.babel.ast.NamedType
gov.llnl.babel.ast.Package
- All Implemented Interfaces:
- IAttributable, INameable
public class Package
- extends NamedType
- implements IAttributable
The only NamedType
that contains other types.
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_types
protected java.util.LinkedList d_types
- a list of NamedTypes
d_attribList
protected AttributeList d_attribList
- the list of attributes (modifiers)
Package
public Package()
Package
public Package(ParseTreeNode src,
ASTNode parent,
Name name,
Version version)
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in class Type
getNamedTypes
public java.util.List getNamedTypes()
appendNamedType
public void appendNamedType(NamedType type)
getAttributeList
public AttributeList getAttributeList()
- Specified by:
getAttributeList
in interface IAttributable
setAttributeList
public void setAttributeList(AttributeList attrib)
- Specified by:
setAttributeList
in interface IAttributable
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