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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
(package private) static final EnumSet<JasmTokens.Token>
private final JasmTokens.KeywordType
private final String
private final String
private final EnumSet<JasmTokens.TokenType>
private final Integer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Token
(Integer val, String print, String parseKey, String als, EnumSet<JasmTokens.TokenType> tokenType) private
Token
(Integer val, String print, String parseKey, String als, EnumSet<JasmTokens.TokenType> tokenType, JasmTokens.KeywordType ktype) private
private
Token
(Integer val, String print, String parseKey, EnumSet<JasmTokens.TokenType> tokenType, JasmTokens.KeywordType ktype) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<JasmTokens.Token>
get
(String parseKey, JasmTokens.KeywordType keywordType) boolean
in
(JasmTokens.Token... tokens) Checks that this enum element is in an enum listboolean
boolean
boolean
parseKey()
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
-
THIS_CLASS
-
SUPER_CLASS
-
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
-
SIGNATURE
-
NESTMEMBERS
-
RECORD
-
COMPONENT
-
PERMITTEDSUBCLASSES
-
SOURCEFILE
-
SOURCEDEBUGEXTENSION
-
REQUIRES
-
EXPORTS
-
TO
-
USES
-
PROVIDES
-
WITH
-
OPENS
-
ARRAY_TYPEPATH
-
INNER_TYPE_TYPEPATH
-
WILDCARD_TYPEPATH
-
TYPE_ARGUMENT_TYPEPATH
-
VALUE
-
PERMITS_VALUE
-
PRIMITIVE
-
PRELOAD
-
-
Field Details
-
ALL_TOKENS
-
value
-
printValue
-
parseKey
-
alias
-
tokenType
-
key_type
-
-
Constructor Details
-
Token
-
Token
-
Token
private Token(Integer val, String print, String parseKey, EnumSet<JasmTokens.TokenType> tokenType, JasmTokens.KeywordType ktype) -
Token
private Token(Integer val, String print, String parseKey, String als, EnumSet<JasmTokens.TokenType> tokenType, JasmTokens.KeywordType ktype)
-
-
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
-
in
Checks that this enum element is in an enum list- Parameters:
tokens
- the list of enum elements for checking- Returns:
- true if a tokens list contains this enum element
-
printValue
-
parseKey
-
value
public int value() -
isPossibleJasmIdentifier
public boolean isPossibleJasmIdentifier() -
isPossibleModuleName
public boolean isPossibleModuleName() -
isPossibleClassName
public boolean isPossibleClassName() -
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>
-