public class Enumeration extends Declaration
| Constructor and Description |
|---|
Enumeration(IDExpression name,
java.util.List declarators)
Creates an enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
defaultPrint(Enumeration e,
java.io.PrintWriter o)
Prints an enumeration to a stream.
|
java.util.List<IDExpression> |
getDeclaredIDs()
Returns a list of name ID introduced by this declaration.
|
IDExpression |
getName()
Returns the name ID of this enumeration.
|
Specifier |
getSpecifier()
Returns the specifier created from this enumeration.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently
created objects will use the supplied method.
|
annotate, annotateAfter, annotateBefore, clone, containsAnnotation, detach, equals, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, hashCode, print, removeAnnotations, removeAnnotations, removeChild, setChild, setParent, setPrintMethod, setSemiColon, toString, verifypublic Enumeration(IDExpression name, java.util.List declarators)
name - The name of the enumeration.declarators - A list of declarators to use as the enumerators.
For enumerations that are not consecutive, initializers should be
placed on the declarators.public static void defaultPrint(Enumeration e, java.io.PrintWriter o)
e - The enumeration to print.o - The writer on which to print the enumeration.public java.util.List<IDExpression> getDeclaredIDs()
DeclarationgetDeclaredIDs in class Declarationpublic IDExpression getName()
public Specifier getSpecifier()
enum name.public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.