public static enum LLJavaLexer.TokenType extends Enum<LLJavaLexer.TokenType>
Enum Constant and Description |
---|
Abstract |
Add |
Ampersand |
And |
Annotation |
At |
Bang |
BlockComment |
Boolean |
BraceClose |
BraceOpen |
BracketClose |
BracketOpen |
Bridge |
Byte |
Case |
Cast |
Catch |
Char |
CharLiteral |
Class |
ClInit |
Cmp |
Colon |
Comma |
Dash |
Default |
Div |
Dot |
Double |
DoubleLiteral |
Dup |
EEq |
Ellipse |
Enter |
Enum |
EOF
End of stream.
|
Eq |
ERROR
Some lexical error.
|
Exit |
Extends |
False |
Final |
Float |
FloatLiteral |
GEq |
Get |
Goto |
GT |
Id |
If |
Implements |
Inc |
Init |
Instanceof |
Int |
Interface |
IntLiteral |
Invoke |
Length |
LEq |
LineComment |
Load |
Long |
LongLiteral |
LT |
Mandated |
Mul |
Native |
Neg |
NEq |
New |
Nop |
Null |
Or |
ParenClose |
ParenOpen |
Plus |
Pop |
Private |
Protected |
Public |
Put |
Question |
Rem |
Return |
Semi |
Shl |
Short |
Shr |
Static |
Store |
Strictfp |
StringLiteral |
Sub |
Super |
Swap |
Switch |
Synchronized |
Synthetic |
This |
Throw |
Throws |
Transient |
True |
Try |
Underscore |
UShr |
Varargs |
Void |
Volatile |
XOr |
Modifier and Type | Method and Description |
---|---|
boolean |
check(String text)
Checks whether tokens of this type may have a given display.
|
String |
display()
Returns a string display for a token of this type without text.
|
String |
display(String text)
Returns a string display for a token of this type with text.
|
static LLJavaLexer.TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LLJavaLexer.TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LLJavaLexer.TokenType EOF
public static final LLJavaLexer.TokenType ERROR
public static final LLJavaLexer.TokenType LineComment
public static final LLJavaLexer.TokenType BlockComment
public static final LLJavaLexer.TokenType ParenOpen
public static final LLJavaLexer.TokenType ParenClose
public static final LLJavaLexer.TokenType BraceOpen
public static final LLJavaLexer.TokenType BraceClose
public static final LLJavaLexer.TokenType BracketOpen
public static final LLJavaLexer.TokenType BracketClose
public static final LLJavaLexer.TokenType Semi
public static final LLJavaLexer.TokenType Comma
public static final LLJavaLexer.TokenType Dot
public static final LLJavaLexer.TokenType Ellipse
public static final LLJavaLexer.TokenType At
public static final LLJavaLexer.TokenType Colon
public static final LLJavaLexer.TokenType Eq
public static final LLJavaLexer.TokenType Dash
public static final LLJavaLexer.TokenType Underscore
public static final LLJavaLexer.TokenType Plus
public static final LLJavaLexer.TokenType Question
public static final LLJavaLexer.TokenType Ampersand
public static final LLJavaLexer.TokenType Bang
public static final LLJavaLexer.TokenType EEq
public static final LLJavaLexer.TokenType NEq
public static final LLJavaLexer.TokenType LEq
public static final LLJavaLexer.TokenType LT
public static final LLJavaLexer.TokenType GEq
public static final LLJavaLexer.TokenType GT
public static final LLJavaLexer.TokenType Init
public static final LLJavaLexer.TokenType ClInit
public static final LLJavaLexer.TokenType Id
public static final LLJavaLexer.TokenType StringLiteral
public static final LLJavaLexer.TokenType IntLiteral
public static final LLJavaLexer.TokenType FloatLiteral
public static final LLJavaLexer.TokenType LongLiteral
public static final LLJavaLexer.TokenType DoubleLiteral
public static final LLJavaLexer.TokenType CharLiteral
public static final LLJavaLexer.TokenType Null
public static final LLJavaLexer.TokenType True
public static final LLJavaLexer.TokenType False
public static final LLJavaLexer.TokenType This
public static final LLJavaLexer.TokenType Class
public static final LLJavaLexer.TokenType Extends
public static final LLJavaLexer.TokenType Implements
public static final LLJavaLexer.TokenType Throws
public static final LLJavaLexer.TokenType Int
public static final LLJavaLexer.TokenType Long
public static final LLJavaLexer.TokenType Short
public static final LLJavaLexer.TokenType Char
public static final LLJavaLexer.TokenType Byte
public static final LLJavaLexer.TokenType Float
public static final LLJavaLexer.TokenType Double
public static final LLJavaLexer.TokenType Boolean
public static final LLJavaLexer.TokenType Void
public static final LLJavaLexer.TokenType Public
public static final LLJavaLexer.TokenType Private
public static final LLJavaLexer.TokenType Protected
public static final LLJavaLexer.TokenType Abstract
public static final LLJavaLexer.TokenType Static
public static final LLJavaLexer.TokenType Final
public static final LLJavaLexer.TokenType Synthetic
public static final LLJavaLexer.TokenType Enum
public static final LLJavaLexer.TokenType Interface
public static final LLJavaLexer.TokenType Annotation
public static final LLJavaLexer.TokenType Volatile
public static final LLJavaLexer.TokenType Transient
public static final LLJavaLexer.TokenType Synchronized
public static final LLJavaLexer.TokenType Bridge
public static final LLJavaLexer.TokenType Native
public static final LLJavaLexer.TokenType Strictfp
public static final LLJavaLexer.TokenType Varargs
public static final LLJavaLexer.TokenType Super
public static final LLJavaLexer.TokenType Mandated
public static final LLJavaLexer.TokenType Goto
public static final LLJavaLexer.TokenType Load
public static final LLJavaLexer.TokenType Store
public static final LLJavaLexer.TokenType Cast
public static final LLJavaLexer.TokenType New
public static final LLJavaLexer.TokenType Get
public static final LLJavaLexer.TokenType Put
public static final LLJavaLexer.TokenType Instanceof
public static final LLJavaLexer.TokenType Length
public static final LLJavaLexer.TokenType Try
public static final LLJavaLexer.TokenType Catch
public static final LLJavaLexer.TokenType Return
public static final LLJavaLexer.TokenType Throw
public static final LLJavaLexer.TokenType Switch
public static final LLJavaLexer.TokenType If
public static final LLJavaLexer.TokenType Enter
public static final LLJavaLexer.TokenType Exit
public static final LLJavaLexer.TokenType Invoke
public static final LLJavaLexer.TokenType Nop
public static final LLJavaLexer.TokenType Pop
public static final LLJavaLexer.TokenType Dup
public static final LLJavaLexer.TokenType Swap
public static final LLJavaLexer.TokenType Case
public static final LLJavaLexer.TokenType Default
public static final LLJavaLexer.TokenType Add
public static final LLJavaLexer.TokenType Sub
public static final LLJavaLexer.TokenType Mul
public static final LLJavaLexer.TokenType Div
public static final LLJavaLexer.TokenType Rem
public static final LLJavaLexer.TokenType Neg
public static final LLJavaLexer.TokenType Inc
public static final LLJavaLexer.TokenType Shl
public static final LLJavaLexer.TokenType Shr
public static final LLJavaLexer.TokenType UShr
public static final LLJavaLexer.TokenType And
public static final LLJavaLexer.TokenType Or
public static final LLJavaLexer.TokenType XOr
public static final LLJavaLexer.TokenType Cmp
public static LLJavaLexer.TokenType[] values()
for (LLJavaLexer.TokenType c : LLJavaLexer.TokenType.values()) System.out.println(c);
public static LLJavaLexer.TokenType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String display(String text)
text
- the token text to displaypublic String display()
public boolean check(String text)
text
- the text for a token of this typetrue
iff text
matches the fixed display
of this token type, or otherwise this token type allows
variable display.see also the complete user documentation .