Enum Class JasmTokens.Token
- All Implemented Interfaces:
Serializable, Comparable<JasmTokens.Token>, java.lang.constant.Constable
- Enclosing class:
JasmTokens
Scanner Tokens (Definitive List)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<JasmTokens.Token> get(String parsekey, JasmTokens.KeywordType ktype) booleanin(JasmTokens.Token... tokens) Checks that this enum element is in an enum listparseKey()booleanbooleanbooleanChecks a token belonging to the table: Table 4.7.20.2-A.toString()intvalue()static JasmTokens.TokenReturns 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
-
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() -
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:
toStringin classEnum<JasmTokens.Token>
-