|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Expressions.RuleNames>
com.coasttocoastresearch.examples.demo.Expressions.RuleNames
public static enum Expressions.RuleNames
This enum provides easy to remember enum constants for locating the rule identifiers and names. The enum constants have the same spelling as the rule names rendered in all caps with underscores replacing hyphens.
| Enum Constant Summary | |
|---|---|
ALPHA
id = 6, name = "alpha" |
|
DIGIT
id = 7, name = "digit" |
|
E
id = 0, name = "E" |
|
EPRIME
id = 1, name = "Eprime" |
|
F
id = 4, name = "F" |
|
ID
id = 5, name = "id" |
|
T
id = 2, name = "T" |
|
TPRIME
id = 3, name = "Tprime" |
|
| Method Summary | |
|---|---|
int |
ruleID()
Associates the enum with an identifier for the grammar rule it represents. |
java.lang.String |
ruleName()
Associates the enum with the original grammar name of the rule it represents. |
static Expressions.RuleNames |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Expressions.RuleNames[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Expressions.RuleNames ALPHA
6, name = "alpha"
public static final Expressions.RuleNames DIGIT
7, name = "digit"
public static final Expressions.RuleNames E
0, name = "E"
public static final Expressions.RuleNames EPRIME
1, name = "Eprime"
public static final Expressions.RuleNames F
4, name = "F"
public static final Expressions.RuleNames ID
5, name = "id"
public static final Expressions.RuleNames T
2, name = "T"
public static final Expressions.RuleNames TPRIME
3, name = "Tprime"
| Method Detail |
|---|
public int ruleID()
public java.lang.String ruleName()
public static Expressions.RuleNames valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static Expressions.RuleNames[] values()
for (Expressions.RuleNames c : Expressions.RuleNames.values()) System.out.println(c);
|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||