gov.llnl.babel.ast
public class Package extends NamedType implements IAttributable
NamedType
that contains other types.Modifier and Type | Field and Description |
---|---|
protected AttributeList |
d_attribList
the list of attributes (modifiers)
|
protected java.util.LinkedList |
d_types
a list of NamedTypes
|
ILLEGAL_NODEID
Constructor and Description |
---|
Package() |
Package(ParseTreeNode src,
ASTNode parent,
Name name,
Version version) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(Visitor v,
java.lang.Object data)
implements "Visitor Pattern"
|
void |
appendNamedType(NamedType type) |
AttributeList |
getAttributeList() |
java.util.List |
getNamedTypes() |
java.lang.String |
getTypeName() |
void |
setAttributeList(AttributeList attrib) |
getDocComment, getFQN, getName, getUserSelected, getVersion, hasDocComment, setDocComment, setName, setUserSelected, setVersion
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry
protected java.util.LinkedList d_types
protected AttributeList d_attribList
public Package()
public Package(ParseTreeNode src, ASTNode parent, Name name, Version version)
public java.lang.String getTypeName()
getTypeName
in class Type
public java.util.List getNamedTypes()
public void appendNamedType(NamedType type)
public AttributeList getAttributeList()
getAttributeList
in interface IAttributable
public void setAttributeList(AttributeList attrib)
setAttributeList
in interface IAttributable