Package org.openjdk.asmtools.jcoder
Enum JcodTokens.Token
- java.lang.Object
-
- java.lang.Enum<JcodTokens.Token>
-
- org.openjdk.asmtools.jcoder.JcodTokens.Token
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JcodTokens.Token>
- Enclosing class:
- JcodTokens
public static enum JcodTokens.Token extends java.lang.Enum<JcodTokens.Token>
Scanner Tokens (Definitive List)
-
-
Field Summary
Fields Modifier and Type Field Description private JcodTokens.KeywordType
key_type
private java.lang.String
parsekey
private java.lang.String
printval
private JcodTokens.TokenType
tk_type
private java.lang.Integer
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Token(java.lang.Integer val, java.lang.String print, java.lang.String op)
private
Token(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt)
private
Token(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
init(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt)
java.lang.String
parsekey()
java.lang.String
printval()
java.lang.String
toString()
int
value()
static JcodTokens.Token
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JcodTokens.Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOF
public static final JcodTokens.Token EOF
-
IDENT
public static final JcodTokens.Token IDENT
-
LONGSTRINGVAL
public static final JcodTokens.Token LONGSTRINGVAL
-
INTVAL
public static final JcodTokens.Token INTVAL
-
LONGVAL
public static final JcodTokens.Token LONGVAL
-
STRINGVAL
public static final JcodTokens.Token STRINGVAL
-
CLASS
public static final JcodTokens.Token CLASS
-
INTERFACE
public static final JcodTokens.Token INTERFACE
-
DIV
public static final JcodTokens.Token DIV
-
EQ
public static final JcodTokens.Token EQ
-
ASSIGN
public static final JcodTokens.Token ASSIGN
-
MODULE
public static final JcodTokens.Token MODULE
-
COLON
public static final JcodTokens.Token COLON
-
SEMICOLON
public static final JcodTokens.Token SEMICOLON
-
COMMA
public static final JcodTokens.Token COMMA
-
LBRACE
public static final JcodTokens.Token LBRACE
-
RBRACE
public static final JcodTokens.Token RBRACE
-
LPAREN
public static final JcodTokens.Token LPAREN
-
RPAREN
public static final JcodTokens.Token RPAREN
-
LSQBRACKET
public static final JcodTokens.Token LSQBRACKET
-
RSQBRACKET
public static final JcodTokens.Token RSQBRACKET
-
BYTEINDEX
public static final JcodTokens.Token BYTEINDEX
-
SHORTINDEX
public static final JcodTokens.Token SHORTINDEX
-
ATTR
public static final JcodTokens.Token ATTR
-
BYTES
public static final JcodTokens.Token BYTES
-
MACRO
public static final JcodTokens.Token MACRO
-
COMP
public static final JcodTokens.Token COMP
-
FILE
public static final JcodTokens.Token FILE
-
ZEROINDEX
public static final JcodTokens.Token ZEROINDEX
-
-
Field Detail
-
value
private java.lang.Integer value
-
printval
private java.lang.String printval
-
parsekey
private java.lang.String parsekey
-
tk_type
private JcodTokens.TokenType tk_type
-
key_type
private JcodTokens.KeywordType key_type
-
-
Constructor Detail
-
Token
private Token(java.lang.Integer val, java.lang.String print, java.lang.String op)
-
Token
private Token(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt)
-
Token
private Token(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt)
-
-
Method Detail
-
values
public static JcodTokens.Token[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JcodTokens.Token c : JcodTokens.Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JcodTokens.Token valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
init
private void init(java.lang.Integer val, java.lang.String print, java.lang.String op, JcodTokens.TokenType tt, JcodTokens.KeywordType kt)
-
printval
public java.lang.String printval()
-
parsekey
public java.lang.String parsekey()
-
value
public int value()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<JcodTokens.Token>
-
-