Package org.opencypher.grammar
Enum Grammar.ParserOption
- java.lang.Object
-
- java.lang.Enum<Grammar.ParserOption>
-
- org.opencypher.grammar.Grammar.ParserOption
-
- All Implemented Interfaces:
Serializable,Comparable<Grammar.ParserOption>
- Enclosing interface:
- Grammar
public static enum Grammar.ParserOption extends Enum<Grammar.ParserOption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_ROOTLESS_GRAMMARFAIL_ON_UNKNOWN_XML_ATTRIBUTEINCLUDE_LEGACYSKIP_UNUSED_PRODUCTIONS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Grammar.ParserOption[]from(Properties properties)static Grammar.ParserOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static Grammar.ParserOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL_ON_UNKNOWN_XML_ATTRIBUTE
public static final Grammar.ParserOption FAIL_ON_UNKNOWN_XML_ATTRIBUTE
-
SKIP_UNUSED_PRODUCTIONS
public static final Grammar.ParserOption SKIP_UNUSED_PRODUCTIONS
-
ALLOW_ROOTLESS_GRAMMAR
public static final Grammar.ParserOption ALLOW_ROOTLESS_GRAMMAR
-
INCLUDE_LEGACY
public static final Grammar.ParserOption INCLUDE_LEGACY
-
-
Method Detail
-
values
public static Grammar.ParserOption[] 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 (Grammar.ParserOption c : Grammar.ParserOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Grammar.ParserOption 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
-
from
public static Grammar.ParserOption[] from(Properties properties)
-
-