Package apg
Enum GeneratorGrammar.RuleNames
- java.lang.Object
-
- java.lang.Enum<GeneratorGrammar.RuleNames>
-
- apg.GeneratorGrammar.RuleNames
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GeneratorGrammar.RuleNames>
- Enclosing class:
- GeneratorGrammar
public static enum GeneratorGrammar.RuleNames extends java.lang.Enum<GeneratorGrammar.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
Enum Constants Enum Constant Description ALPHANUM
id =39
, name ="alphanum"
ALTERNATION
id =4
, name ="Alternation"
ALTOP
id =19
, name ="AltOp"
ANDOP
id =22
, name ="AndOp"
BIN
id =35
, name ="Bin"
BLANKLINE
id =1
, name ="BlankLine"
BNUM
id =37
, name ="bnum"
CATOP
id =20
, name ="CatOp"
COMMENT
id =44
, name ="comment"
CONCATENATION
id =5
, name ="Concatenation"
DEC
id =33
, name ="Dec"
DEFINEDAS
id =15
, name ="DefinedAs"
DNUM
id =36
, name ="dnum"
ELEMENT
id =10
, name ="Element"
FILE
id =0
, name ="File"
FSP
id =41
, name ="fsp"
GROUP
id =11
, name ="Group"
HEX
id =34
, name ="Hex"
INCALT
id =16
, name ="IncAlt"
LINECONTINUE
id =46
, name ="LineContinue"
LINEEND
id =45
, name ="LineEnd"
NAMEDEF
id =14
, name ="NameDef"
NOTOP
id =23
, name ="NotOp"
OPTION
id =12
, name ="Option"
OWSP
id =42
, name ="owsp"
PREDICATE
id =8
, name ="Predicate"
PROSVAL
id =13
, name ="ProsVal"
REP
id =9
, name ="Rep"
REP_MAX
id =30
, name ="rep-max"
REP_MIN
id =28
, name ="rep-min"
REP_MIN_MAX
id =29
, name ="rep-min-max"
REPEAT
id =7
, name ="Repeat"
REPETITION
id =6
, name ="Repetition"
RNMOP
id =17
, name ="RnmOp"
RULE
id =2
, name ="Rule"
RULEERROR
id =3
, name ="RuleError"
SP
id =40
, name ="sp"
STAROP
id =21
, name ="StarOp"
TBSOP
id =25
, name ="TbsOp"
TBSSTRING
id =32
, name ="TbsString"
TCSOP
id =27
, name ="TcsOp"
TLSOP
id =26
, name ="TlsOp"
TRGOP
id =24
, name ="TrgOp"
TRGRANGE
id =31
, name ="TrgRange"
UDTOP
id =18
, name ="UdtOp"
WSP
id =43
, name ="wsp"
XNUM
id =38
, name ="xnum"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 GeneratorGrammar.RuleNames
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GeneratorGrammar.RuleNames[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPHANUM
public static final GeneratorGrammar.RuleNames ALPHANUM
id =39
, name ="alphanum"
-
ALTERNATION
public static final GeneratorGrammar.RuleNames ALTERNATION
id =4
, name ="Alternation"
-
ALTOP
public static final GeneratorGrammar.RuleNames ALTOP
id =19
, name ="AltOp"
-
ANDOP
public static final GeneratorGrammar.RuleNames ANDOP
id =22
, name ="AndOp"
-
BIN
public static final GeneratorGrammar.RuleNames BIN
id =35
, name ="Bin"
-
BLANKLINE
public static final GeneratorGrammar.RuleNames BLANKLINE
id =1
, name ="BlankLine"
-
BNUM
public static final GeneratorGrammar.RuleNames BNUM
id =37
, name ="bnum"
-
CATOP
public static final GeneratorGrammar.RuleNames CATOP
id =20
, name ="CatOp"
-
COMMENT
public static final GeneratorGrammar.RuleNames COMMENT
id =44
, name ="comment"
-
CONCATENATION
public static final GeneratorGrammar.RuleNames CONCATENATION
id =5
, name ="Concatenation"
-
DEC
public static final GeneratorGrammar.RuleNames DEC
id =33
, name ="Dec"
-
DEFINEDAS
public static final GeneratorGrammar.RuleNames DEFINEDAS
id =15
, name ="DefinedAs"
-
DNUM
public static final GeneratorGrammar.RuleNames DNUM
id =36
, name ="dnum"
-
ELEMENT
public static final GeneratorGrammar.RuleNames ELEMENT
id =10
, name ="Element"
-
FILE
public static final GeneratorGrammar.RuleNames FILE
id =0
, name ="File"
-
FSP
public static final GeneratorGrammar.RuleNames FSP
id =41
, name ="fsp"
-
GROUP
public static final GeneratorGrammar.RuleNames GROUP
id =11
, name ="Group"
-
HEX
public static final GeneratorGrammar.RuleNames HEX
id =34
, name ="Hex"
-
INCALT
public static final GeneratorGrammar.RuleNames INCALT
id =16
, name ="IncAlt"
-
LINECONTINUE
public static final GeneratorGrammar.RuleNames LINECONTINUE
id =46
, name ="LineContinue"
-
LINEEND
public static final GeneratorGrammar.RuleNames LINEEND
id =45
, name ="LineEnd"
-
NAMEDEF
public static final GeneratorGrammar.RuleNames NAMEDEF
id =14
, name ="NameDef"
-
NOTOP
public static final GeneratorGrammar.RuleNames NOTOP
id =23
, name ="NotOp"
-
OPTION
public static final GeneratorGrammar.RuleNames OPTION
id =12
, name ="Option"
-
OWSP
public static final GeneratorGrammar.RuleNames OWSP
id =42
, name ="owsp"
-
PREDICATE
public static final GeneratorGrammar.RuleNames PREDICATE
id =8
, name ="Predicate"
-
PROSVAL
public static final GeneratorGrammar.RuleNames PROSVAL
id =13
, name ="ProsVal"
-
REP
public static final GeneratorGrammar.RuleNames REP
id =9
, name ="Rep"
-
REP_MAX
public static final GeneratorGrammar.RuleNames REP_MAX
id =30
, name ="rep-max"
-
REP_MIN
public static final GeneratorGrammar.RuleNames REP_MIN
id =28
, name ="rep-min"
-
REP_MIN_MAX
public static final GeneratorGrammar.RuleNames REP_MIN_MAX
id =29
, name ="rep-min-max"
-
REPEAT
public static final GeneratorGrammar.RuleNames REPEAT
id =7
, name ="Repeat"
-
REPETITION
public static final GeneratorGrammar.RuleNames REPETITION
id =6
, name ="Repetition"
-
RNMOP
public static final GeneratorGrammar.RuleNames RNMOP
id =17
, name ="RnmOp"
-
RULE
public static final GeneratorGrammar.RuleNames RULE
id =2
, name ="Rule"
-
RULEERROR
public static final GeneratorGrammar.RuleNames RULEERROR
id =3
, name ="RuleError"
-
SP
public static final GeneratorGrammar.RuleNames SP
id =40
, name ="sp"
-
STAROP
public static final GeneratorGrammar.RuleNames STAROP
id =21
, name ="StarOp"
-
TBSOP
public static final GeneratorGrammar.RuleNames TBSOP
id =25
, name ="TbsOp"
-
TBSSTRING
public static final GeneratorGrammar.RuleNames TBSSTRING
id =32
, name ="TbsString"
-
TCSOP
public static final GeneratorGrammar.RuleNames TCSOP
id =27
, name ="TcsOp"
-
TLSOP
public static final GeneratorGrammar.RuleNames TLSOP
id =26
, name ="TlsOp"
-
TRGOP
public static final GeneratorGrammar.RuleNames TRGOP
id =24
, name ="TrgOp"
-
TRGRANGE
public static final GeneratorGrammar.RuleNames TRGRANGE
id =31
, name ="TrgRange"
-
UDTOP
public static final GeneratorGrammar.RuleNames UDTOP
id =18
, name ="UdtOp"
-
WSP
public static final GeneratorGrammar.RuleNames WSP
id =43
, name ="wsp"
-
XNUM
public static final GeneratorGrammar.RuleNames XNUM
id =38
, name ="xnum"
-
-
Method Detail
-
values
public static GeneratorGrammar.RuleNames[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeneratorGrammar.RuleNames c : GeneratorGrammar.RuleNames.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeneratorGrammar.RuleNames valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
ruleName
public java.lang.String ruleName()
Associates the enum with the original grammar name of the rule it represents.- Returns:
- the original grammar rule name.
-
ruleID
public int ruleID()
Associates the enum with an identifier for the grammar rule it represents.- Returns:
- the rule name identifier.
-
-