Package com.google.javascript.rhino
Enum Class Token
- All Implemented Interfaces:
Serializable
,Comparable<Token>
,Constable
This class implements the JavaScript scanner.
It is based on the C source files jsscan.c and jsscan.h in the jsref package.
-
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 int
If the arity isn't always the same, this function returns -1static Token
Returns the enum constant of this class with the specified name.static Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETURN
-
BITOR
-
BITXOR
-
BITAND
-
EQ
-
NE
-
LT
-
LE
-
GT
-
GE
-
LSH
-
RSH
-
URSH
-
ADD
-
SUB
-
MUL
-
DIV
-
MOD
-
EXPONENT
-
NOT
-
BITNOT
-
POS
-
NEG
-
NEW
-
DELPROP
-
TYPEOF
-
GETPROP
-
GETELEM
-
CALL
-
OPTCHAIN_GETPROP
-
OPTCHAIN_GETELEM
-
OPTCHAIN_CALL
-
NAME
-
NUMBER
-
BIGINT
-
STRINGLIT
-
NULL
-
THIS
-
FALSE
-
TRUE
-
SHEQ
-
SHNE
-
REGEXP
-
THROW
-
IN
-
INSTANCEOF
-
ARRAYLIT
-
OBJECTLIT
-
TRY
-
PARAM_LIST
-
COMMA
-
ASSIGN
-
ASSIGN_BITOR
-
ASSIGN_BITXOR
-
ASSIGN_BITAND
-
ASSIGN_LSH
-
ASSIGN_RSH
-
ASSIGN_URSH
-
ASSIGN_ADD
-
ASSIGN_SUB
-
ASSIGN_MUL
-
ASSIGN_DIV
-
ASSIGN_MOD
-
ASSIGN_EXPONENT
-
ASSIGN_OR
-
ASSIGN_AND
-
ASSIGN_COALESCE
-
HOOK
-
OR
-
AND
-
COALESCE
-
INC
-
DEC
-
FUNCTION
-
IF
-
SWITCH
-
CASE
-
DEFAULT_CASE
-
WHILE
-
DO
-
FOR
-
FOR_IN
-
BREAK
-
CONTINUE
-
VAR
-
WITH
-
CATCH
-
VOID
-
EMPTY
-
ROOT
-
BLOCK
-
SWITCH_BODY
-
LABEL
-
EXPR_RESULT
-
SCRIPT
-
GETTER_DEF
-
SETTER_DEF
-
CONST
-
DEBUGGER
-
LABEL_NAME
-
STRING_KEY
-
CAST
-
ARRAY_PATTERN
-
OBJECT_PATTERN
-
DESTRUCTURING_LHS
-
CLASS
-
CLASS_MEMBERS
-
MEMBER_FUNCTION_DEF
-
MEMBER_FIELD_DEF
-
COMPUTED_FIELD_DEF
-
SUPER
-
LET
-
FOR_OF
-
FOR_AWAIT_OF
-
YIELD
-
AWAIT
-
IMPORT
-
IMPORT_SPECS
-
IMPORT_SPEC
-
IMPORT_STAR
-
EXPORT
-
EXPORT_SPECS
-
EXPORT_SPEC
-
MODULE_BODY
-
DYNAMIC_IMPORT
-
ITER_REST
-
OBJECT_REST
-
ITER_SPREAD
-
OBJECT_SPREAD
-
COMPUTED_PROP
-
TAGGED_TEMPLATELIT
-
TEMPLATELIT
-
TEMPLATELIT_SUB
-
TEMPLATELIT_STRING
-
DEFAULT_VALUE
-
NEW_TARGET
-
IMPORT_META
-
STRING_TYPE
-
BOOLEAN_TYPE
-
NUMBER_TYPE
-
FUNCTION_TYPE
-
PARAMETERIZED_TYPE
-
UNION_TYPE
-
ANY_TYPE
-
NULLABLE_TYPE
-
VOID_TYPE
-
REST_PARAMETER_TYPE
-
NAMED_TYPE
-
OPTIONAL_PARAMETER
-
RECORD_TYPE
-
UNDEFINED_TYPE
-
ARRAY_TYPE
-
GENERIC_TYPE
-
GENERIC_TYPE_LIST
-
ANNOTATION
-
PIPE
-
STAR
-
EOC
-
QMARK
-
BANG
-
EQUALS
-
LB
-
LC
-
COLON
-
INTERFACE
-
INTERFACE_EXTENDS
-
INTERFACE_MEMBERS
-
ENUM
-
ENUM_MEMBERS
-
IMPLEMENTS
-
TYPE_ALIAS
-
DECLARE
-
MEMBER_VARIABLE_DEF
-
INDEX_SIGNATURE
-
CALL_SIGNATURE
-
NAMESPACE
-
NAMESPACE_ELEMENTS
-
PLACEHOLDER1
-
PLACEHOLDER2
-
PLACEHOLDER3
-
-
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
-
arity
If the arity isn't always the same, this function returns -1
-