Package org.apache.avro.io.parsing
Enum Symbol.Kind
- All Implemented Interfaces:
Serializable
,Comparable<Symbol.Kind>
- Enclosing class:
Symbol
-
Enum Constant Summary
Enum ConstantDescriptionnon-terminal to represent the unionnon-terminal action symbol which is explicitly consumednon-terminal action symbol which are automatically consumednon-terminal to represent the contents of an array or mapStart symbol for some grammarnon-terminal symbol which is a sequence of one or more other symbolsterminal symbols which have no productions -
Method Summary
Modifier and TypeMethodDescriptionstatic Symbol.Kind
Returns the enum constant of this type with the specified name.static Symbol.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TERMINAL
terminal symbols which have no productions -
ROOT
Start symbol for some grammar -
SEQUENCE
non-terminal symbol which is a sequence of one or more other symbols -
REPEATER
non-terminal to represent the contents of an array or map -
ALTERNATIVE
non-terminal to represent the union -
IMPLICIT_ACTION
non-terminal action symbol which are automatically consumed -
EXPLICIT_ACTION
non-terminal action symbol which is explicitly consumed
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-