Package eu.bandm.tools.d2d2.parser2
Enum Class Parser.TokenType
- All Implemented Interfaces:
TLex.Displayable
,Serializable
,Comparable<Parser.TokenType>
,java.lang.constant.Constable
- Enclosing class:
- Parser
Enumeration of token types.
Display is used for "Token.toString()" and for filtering keywords which may
serve as identifiers. (It is NOT used anymore for a consistency/equality check when
recognizing tokens.)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnd of stream.Some lexical error. -
Method Summary
Modifier and TypeMethodDescriptionstatic Parser.TokenType
Returns the enum constant of this class with the specified name.static Parser.TokenType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOF
End of stream. An unbounded sequence of token of this type can be observed at the end of the output token stream. -
ERROR
Some lexical error. This token type is not accepted by any ordinary grammar rule, and will hence always block the parsing. -
Open
-
Close
-
Equals
-
Star
-
Plus
-
TStar
-
TPlus
-
Quest
-
Exklam
-
SqOpen
-
SqClose
-
VBar
-
Dot
-
Comma
-
Tilde
-
Ampersand
-
At
-
Caret
-
Div
-
Gt
-
Minus
-
Range
-
CharString
-
CharSet
-
Ident
-
SmallPositive
-
HexNumber
-
SL_comment
-
ML_comment
-
ML_d2d
-
h_generic
-
h_distributed
-
h_chars
-
h_ordered
-
h_implicit
-
h_empty
-
h_none
-
h_d2d
-
A
-
As
-
Att
-
Attribute
-
Begin
-
By
-
Chars
-
Data
-
Default
-
Defaults
-
Docu
-
Edit
-
El
-
Element
-
Elements
-
Empty
-
End
-
Enum
-
First
-
From
-
Import
-
In
-
Input
-
Is
-
Join
-
Local
-
Mangling
-
Module
-
Name
-
Naming
-
No
-
Node
-
Numeric
-
Plain
-
Postproc
-
Public
-
Tags
-
Text
-
Trimmed
-
U
-
Untrimmed
-
Upcased
-
Verbatim
-
With
-
Xmlrep
-
Xmlns
-
WS
-
-
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
-
getDisplay
- Specified by:
getDisplay
in interfaceTLex.Displayable
-