Package org.opencypher.tools.g4tree
Enum GrammarItem.ItemType
- java.lang.Object
-
- java.lang.Enum<GrammarItem.ItemType>
-
- org.opencypher.tools.g4tree.GrammarItem.ItemType
-
- All Implemented Interfaces:
Serializable,Comparable<GrammarItem.ItemType>
- Enclosing interface:
- GrammarItem
public static enum GrammarItem.ItemType extends Enum<GrammarItem.ItemType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATIVEALTERNATIVESBNF_LITERALCARDINALITYCHARACTER_LITERALEOIEXCLUSIONCHARSETLISTEDCHARSETLITERALNAMEDCHARSETOTHERREFERENCERULETEXT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GrammarItem.ItemTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GrammarItem.ItemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALTERNATIVE
public static final GrammarItem.ItemType ALTERNATIVE
-
ALTERNATIVES
public static final GrammarItem.ItemType ALTERNATIVES
-
LITERAL
public static final GrammarItem.ItemType LITERAL
-
CARDINALITY
public static final GrammarItem.ItemType CARDINALITY
-
REFERENCE
public static final GrammarItem.ItemType REFERENCE
-
TEXT
public static final GrammarItem.ItemType TEXT
-
OTHER
public static final GrammarItem.ItemType OTHER
-
RULE
public static final GrammarItem.ItemType RULE
-
CHARACTER_LITERAL
public static final GrammarItem.ItemType CHARACTER_LITERAL
-
BNF_LITERAL
public static final GrammarItem.ItemType BNF_LITERAL
-
EOI
public static final GrammarItem.ItemType EOI
-
NAMEDCHARSET
public static final GrammarItem.ItemType NAMEDCHARSET
-
LISTEDCHARSET
public static final GrammarItem.ItemType LISTEDCHARSET
-
EXCLUSIONCHARSET
public static final GrammarItem.ItemType EXCLUSIONCHARSET
-
-
Method Detail
-
values
public static GrammarItem.ItemType[] 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 (GrammarItem.ItemType c : GrammarItem.ItemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GrammarItem.ItemType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-