Package org.openjdk.asmtools.jcoder
Enum Class JcodTokens.Token
- All Implemented Interfaces:
Serializable
,Comparable<JcodTokens.Token>
,Constable
- Enclosing class:
- JcodTokens
Scanner Tokens (Definitive List)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JcodTokens.KeywordType
private String
private String
private JcodTokens.TokenType
private Integer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
Token
(Integer val, String print, String op, JcodTokens.TokenType tt) private
Token
(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
init
(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt) parsekey()
printval()
toString()
int
value()
static JcodTokens.Token
Returns the enum constant of this class with the specified name.static JcodTokens.Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOF
-
IDENT
-
LONGSTRINGVAL
-
INTVAL
-
LONGVAL
-
STRINGVAL
-
CLASS
-
INTERFACE
-
DIV
-
EQ
-
ASSIGN
-
MODULE
-
COLON
-
SEMICOLON
-
COMMA
-
LBRACE
-
RBRACE
-
LPAREN
-
RPAREN
-
LSQBRACKET
-
RSQBRACKET
-
BYTEINDEX
-
SHORTINDEX
-
ATTR
-
BYTES
-
MACRO
-
COMP
-
FILE
-
ZEROINDEX
-
-
Field Details
-
value
-
printval
-
parsekey
-
tk_type
-
key_type
-
-
Constructor Details
-
Token
-
Token
-
Token
private Token(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt)
-
-
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
-
init
private void init(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt) -
printval
-
parsekey
-
value
public int value() -
toString
- Overrides:
toString
in classEnum<JcodTokens.Token>
-