Package eu.bandm.tools.lljava.parser
Enum Class LLJavaLexer.TokenType
- All Implemented Interfaces:
Serializable
,Comparable<LLJavaLexer.TokenType>
,java.lang.constant.Constable
- Enclosing class:
- LLJavaLexer<D>
Enumeration of LLJava token types.
-
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 TypeMethodDescriptionboolean
Checks whether tokens of this type may have a given display.display()
Returns a string display for a token of this type without text.Returns a string display for a token of this type with text.static LLJavaLexer.TokenType
Returns the enum constant of this class with the specified name.static LLJavaLexer.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. -
LineComment
-
BlockComment
-
ParenOpen
-
ParenClose
-
BraceOpen
-
BraceClose
-
BracketOpen
-
BracketClose
-
Semi
-
Comma
-
Dot
-
Ellipse
-
At
-
Colon
-
Eq
-
Dash
-
Underscore
-
Plus
-
Question
-
Ampersand
-
Bang
-
EEq
-
NEq
-
LEq
-
LT
-
GEq
-
GT
-
Init
-
ClInit
-
Id
-
StringLiteral
-
IntLiteral
-
FloatLiteral
-
LongLiteral
-
DoubleLiteral
-
CharLiteral
-
Null
-
True
-
False
-
This
-
Class
-
Extends
-
Implements
-
Throws
-
Int
-
Long
-
Short
-
Char
-
Byte
-
Float
-
Double
-
Boolean
-
Void
-
Public
-
Private
-
Protected
-
Abstract
-
Static
-
Final
-
Synthetic
-
Enum
-
Interface
-
Annotation
-
Volatile
-
Transient
-
Synchronized
-
Bridge
-
Native
-
Strictfp
-
Varargs
-
Super
-
Mandated
-
Goto
-
Load
-
Store
-
Cast
-
New
-
Get
-
Put
-
Instanceof
-
Length
-
Try
-
Catch
-
Return
-
Throw
-
Switch
-
If
-
Enter
-
Exit
-
Invoke
-
Nop
-
Pop
-
Dup
-
Swap
-
Case
-
Default
-
Add
-
Sub
-
Mul
-
Div
-
Rem
-
Neg
-
Inc
-
Shl
-
Shr
-
UShr
-
And
-
Or
-
XOr
-
Cmp
-
-
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
-
display
Returns a string display for a token of this type with text. Tokens of type with a fixed display string are displayed as such. Tokens of variable type are displayed with XML-like markup indicating the type.- Parameters:
text
- the token text to display- Returns:
- a display string for a token of this type with the given text.
-
display
Returns a string display for a token of this type without text. Tokens of type with a fixed display string are displayed as such. Tokens of variable type are displayed with XML-like markup indicating the type.- Returns:
- a display string for a token of this type with the given text.
-
check
Checks whether tokens of this type may have a given display.- Parameters:
text
- the text for a token of this type- Returns:
true
ifftext
matches the fixed display of this token type, or otherwise this token type allows variable display.
-