gov.llnl.babel.ast
Class Enumeration
java.lang.Object
gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.Type
gov.llnl.babel.ast.NamedType
gov.llnl.babel.ast.AttributedType
gov.llnl.babel.ast.Enumeration
- All Implemented Interfaces:
- IAttributable, INameable
public class Enumeration
- extends AttributedType
User-defined type that has no methods, but associates names with fixed
values.
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 |
Enumeration
public Enumeration()
Enumeration
public Enumeration(ParseTreeNode src,
ASTNode parent,
Name name)
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in class Type
addEnumItem
public void addEnumItem(EnumItem i)
getEnumItemList
public java.util.LinkedList getEnumItemList()
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