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