Package com.google.javascript.rhino
Class Token
java.lang.Object
com.google.javascript.rhino.Token
This class implements the JavaScript scanner.
It is based on the C source files jsscan.c and jsscan.h
in the jsref package.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types.static final int
Token types. -
Constructor Summary
-
Method Summary
-
Field Details
-
ERROR
public static final int ERRORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
RETURN
public static final int RETURNToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BITOR
public static final int BITORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BITXOR
public static final int BITXORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BITAND
public static final int BITANDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
EQ
public static final int EQToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NE
public static final int NEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LT
public static final int LTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LE
public static final int LEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
GT
public static final int GTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
GE
public static final int GEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LSH
public static final int LSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
RSH
public static final int RSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
URSH
public static final int URSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ADD
public static final int ADDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SUB
public static final int SUBToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
MUL
public static final int MULToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DIV
public static final int DIVToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
MOD
public static final int MODToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NOT
public static final int NOTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BITNOT
public static final int BITNOTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
POS
public static final int POSToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NEG
public static final int NEGToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NEW
public static final int NEWToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DELPROP
public static final int DELPROPToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
TYPEOF
public static final int TYPEOFToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
GETPROP
public static final int GETPROPToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
GETELEM
public static final int GETELEMToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CALL
public static final int CALLToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NAME
public static final int NAMEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NUMBER
public static final int NUMBERToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
STRING
public static final int STRINGToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
NULL
public static final int NULLToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
THIS
public static final int THISToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
FALSE
public static final int FALSEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
TRUE
public static final int TRUEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SHEQ
public static final int SHEQToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SHNE
public static final int SHNEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
REGEXP
public static final int REGEXPToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
THROW
public static final int THROWToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
IN
public static final int INToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
INSTANCEOF
public static final int INSTANCEOFToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ARRAYLIT
public static final int ARRAYLITToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
OBJECTLIT
public static final int OBJECTLITToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
TRY
public static final int TRYToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
PARAM_LIST
public static final int PARAM_LISTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
COMMA
public static final int COMMAToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN
public static final int ASSIGNToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_BITOR
public static final int ASSIGN_BITORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_BITXOR
public static final int ASSIGN_BITXORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_BITAND
public static final int ASSIGN_BITANDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_LSH
public static final int ASSIGN_LSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_RSH
public static final int ASSIGN_RSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_URSH
public static final int ASSIGN_URSHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_ADD
public static final int ASSIGN_ADDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_SUB
public static final int ASSIGN_SUBToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_MUL
public static final int ASSIGN_MULToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_DIV
public static final int ASSIGN_DIVToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ASSIGN_MOD
public static final int ASSIGN_MODToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
HOOK
public static final int HOOKToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
OR
public static final int ORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
AND
public static final int ANDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
INC
public static final int INCToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DEC
public static final int DECToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
FUNCTION
public static final int FUNCTIONToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
IF
public static final int IFToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SWITCH
public static final int SWITCHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CASE
public static final int CASEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DEFAULT_CASE
public static final int DEFAULT_CASEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
WHILE
public static final int WHILEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DO
public static final int DOToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
FOR
public static final int FORToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BREAK
public static final int BREAKToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CONTINUE
public static final int CONTINUEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
VAR
public static final int VARToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
WITH
public static final int WITHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CATCH
public static final int CATCHToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
VOID
public static final int VOIDToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
EMPTY
public static final int EMPTYToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BLOCK
public static final int BLOCKToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LABEL
public static final int LABELToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
EXPR_RESULT
public static final int EXPR_RESULTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SCRIPT
public static final int SCRIPTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
GETTER_DEF
public static final int GETTER_DEFToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
SETTER_DEF
public static final int SETTER_DEFToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CONST
public static final int CONSTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DEBUGGER
public static final int DEBUGGERToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LABEL_NAME
public static final int LABEL_NAMEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
STRING_KEY
public static final int STRING_KEYToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
CAST
public static final int CASTToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ANNOTATION
public static final int ANNOTATIONToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
PIPE
public static final int PIPEToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
STAR
public static final int STARToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
EOC
public static final int EOCToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
QMARK
public static final int QMARKToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
ELLIPSIS
public static final int ELLIPSISToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
BANG
public static final int BANGToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
EQUALS
public static final int EQUALSToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LB
public static final int LBToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
LC
public static final int LCToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
COLON
public static final int COLONToken types. These values correspond to JSTokenType values in jsscan.c.- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
GET
public static final int GET- See Also:
-
LP
public static final int LP- See Also:
-
SET
public static final int SET- See Also:
-
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
name
-