|
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<Comment.RuleNames>
com.coasttocoastresearch.examples.testudtlib.Comment.RuleNames
public static enum Comment.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 | |
|---|---|
ANY
id = 3, name = "any" |
|
ANYLF
id = 4, name = "anyLF" |
|
C_COMMENT
id = 2, name = "c-comment" |
|
CPP_COMMENT
id = 1, name = "cpp-comment" |
|
SEMI_COMMENT
id = 0, name = "semi-comment" |
|
| 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 Comment.RuleNames |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Comment.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 Comment.RuleNames ANY
3, name = "any"
public static final Comment.RuleNames ANYLF
4, name = "anyLF"
public static final Comment.RuleNames C_COMMENT
2, name = "c-comment"
public static final Comment.RuleNames CPP_COMMENT
1, name = "cpp-comment"
public static final Comment.RuleNames SEMI_COMMENT
0, name = "semi-comment"
| Method Detail |
|---|
public int ruleID()
public java.lang.String ruleName()
public static Comment.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 Comment.RuleNames[] values()
for (Comment.RuleNames c : Comment.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 | ||||||||