Package dev.omnist.schema
Enum Class OsdLexer.TokenType
- All Implemented Interfaces:
Serializable,Comparable<OsdLexer.TokenType>,Constable
- Enclosing class:
OsdLexer
Token types produced by the OSD lexer (omnist-spec §5.3).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA bracket-enclosed cardinality expression, e.g.Colon:separating a field label from its type.Comma,separating fields within a record.End-of-input sentinel; always the last token in the list returned byOsdLexer.tokenizeAll().An identifier: a record name, field type name, or scalar keyword (§5.3).Opening brace token,{.Question mark?marking a scalar type as nullable (§5.4).Closing brace token,}.The keywordrecord, introducing a record definition (§5.5).The keywordroot, declaring the root record name (§5.6).A double-quoted field-name string (§5.3.1); the token text contains the unescaped content. -
Method Summary
Modifier and TypeMethodDescriptionstatic OsdLexer.TokenTypeReturns the enum constant of this class with the specified name.static OsdLexer.TokenType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
A double-quoted field-name string (§5.3.1); the token text contains the unescaped content. -
CARDINALITY
A bracket-enclosed cardinality expression, e.g.[0,1]or[2]; text is the content inside brackets. -
LBRACE
Opening brace token,{. -
RBRACE
Closing brace token,}. -
COLON
Colon:separating a field label from its type. -
COMMA
Comma,separating fields within a record. -
QUESTION
Question mark?marking a scalar type as nullable (§5.4). -
RECORD
The keywordrecord, introducing a record definition (§5.5). -
ROOT
The keywordroot, declaring the root record name (§5.6). -
IDENT
An identifier: a record name, field type name, or scalar keyword (§5.3). -
EOF
End-of-input sentinel; always the last token in the list returned byOsdLexer.tokenizeAll().
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-