Package org.openjdk.asmtools.jasm
Enum Class JasmTokens.Token
- All Implemented Interfaces:
Serializable
,Comparable<JasmTokens.Token>
,Constable
- Enclosing class:
- JasmTokens
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 ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<JasmTokens.Token>
get
(String parsekey, JasmTokens.KeywordType ktype) parseKey()
boolean
boolean
boolean
Checks a token belonging to the table: Table 4.7.20.2-A.toString()
int
value()
static JasmTokens.Token
Returns the enum constant of this class with the specified name.static JasmTokens.Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOF
-
COMMA
-
ASSIGN
-
ASGMUL
-
ASGDIV
-
ASGREM
-
ASGADD
-
ASGSUB
-
ASGLSHIFT
-
ASGRSHIFT
-
ASGURSHIFT
-
ASGBITAND
-
ASGBITOR
-
ASGBITXOR
-
COND
-
OR
-
AND
-
BITOR
-
BITXOR
-
BITAND
-
NE
-
EQ
-
GE
-
GT
-
LE
-
LT
-
INSTANCEOF
-
LSHIFT
-
RSHIFT
-
URSHIFT
-
ADD
-
SUB
-
DIV
-
REM
-
MUL
-
CAST
-
POS
-
NEG
-
NOT
-
BITNOT
-
PREINC
-
PREDEC
-
NEWARRAY
-
NEWINSTANCE
-
NEWFROMNAME
-
POSTINC
-
POSTDEC
-
FIELD
-
METHOD
-
ARRAYACCESS
-
NEW
-
INC
-
DEC
-
CONVERT
-
EXPR
-
ARRAY
-
GOTO
-
IDENT
-
BOOLEANVAL
-
BYTEVAL
-
CHARVAL
-
SHORTVAL
-
INTVAL
-
LONGVAL
-
FLOATVAL
-
DOUBLEVAL
-
STRINGVAL
-
BYTE
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
VOID
-
BOOLEAN
-
TRUE
-
FALSE
-
THIS
-
SUPER
-
NULL
-
IF
-
ELSE
-
FOR
-
WHILE
-
DO
-
SWITCH
-
CASE
-
DEFAULT
-
BREAK
-
CONTINUE
-
RETURN
-
TRY
-
CATCH
-
FINALLY
-
THROW
-
STAT
-
EXPRESSION
-
DECLARATION
-
VARDECLARATION
-
IMPORT
-
CLASS
-
EXTENDS
-
IMPLEMENTS
-
INTERFACE
-
PACKAGE
-
ENUM
-
MANDATED
-
THROWS
-
ANNOTATION_ACCESS
-
PRIVATE
-
PUBLIC
-
PROTECTED
-
CONST
-
STATIC
-
TRANSIENT
-
SYNCHRONIZED
-
NATIVE
-
FINAL
-
VOLATILE
-
ABSTRACT
-
TRANSITIVE
-
OPEN
-
AT_SIGN
-
SEMICOLON
-
COLON
-
QUESTIONMARK
-
LBRACE
-
RBRACE
-
LPAREN
-
RPAREN
-
LSQBRACKET
-
RSQBRACKET
-
ESCAPED_COLON
-
ESCAPED_ATSIGH
-
ESCAPED_BACKSLASH
-
ERROR
-
COMMENT
-
TYPE
-
LENGTH
-
INLINERETURN
-
INLINEMETHOD
-
INLINENEWINSTANCE
-
METHODREF
-
FIELDREF
-
STACK
-
LOCAL
-
CPINDEX
-
CPNAME
-
SIGN
-
BITS
-
INF
-
NAN
-
INNERCLASS
-
OF
-
SYNTHETIC
-
STRICT
-
DEPRECATED
-
VERSION
-
MODULE
-
ANNOTATION
-
PARAM_NAME
-
VARARGS
-
BRIDGE
-
BOOTSTRAPMETHOD
-
NESTHOST
-
NESTMEMBERS
-
RECORD
-
COMPONENT
-
PERMITTEDSUBCLASSES
-
REQUIRES
-
EXPORTS
-
TO
-
USES
-
PROVIDES
-
WITH
-
OPENS
-
ARRAY_TYPEPATH
-
INNER_TYPE_TYPEPATH
-
WILDCARD_TYPEPATH
-
TYPE_ARGUMENT_TYPEPATH
-
-
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
-
get
-
printValue
-
parseKey
-
value
public int value() -
possibleJasmIdentifier
public boolean possibleJasmIdentifier() -
possibleModuleName
public boolean possibleModuleName() -
possibleTypePathKind
public boolean possibleTypePathKind()Checks a token belonging to the table: Table 4.7.20.2-A. Interpretation of type_path_kind values- Returns:
- true if token is ARRAY, INNER_TYPE, WILDCARD or TYPE_ARGUMENT
-
toString
- Overrides:
toString
in classEnum<JasmTokens.Token>
-