Package apg

Enum 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.
      • 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