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 Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JcodTokens.KeywordTypeprivate Stringprivate Stringprivate JcodTokens.TokenTypeprivate Integer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateToken(Integer val, String print, String op, JcodTokens.TokenType tt) privateToken(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidinit(Integer val, String print, String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt) parsekey()printval()toString()intvalue()static JcodTokens.TokenReturns 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:
toStringin classEnum<JcodTokens.Token>
-