Package org.mozilla.javascript
Class Token
- java.lang.Object
- 
- org.mozilla.javascript.Token
 
- 
 public class Token extends java.lang.ObjectThis class implements the JavaScript scanner.It is based on the C source files jsscan.c and jsscan.h in the jsref package. - See Also:
- Parser
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classToken.CommentType
 - 
Field SummaryFields Modifier and Type Field Description static intADDToken types.static intANDstatic intARRAYCOMPstatic intARRAYLITToken types.static intARROWstatic intASSIGNstatic intASSIGN_ADDstatic intASSIGN_BITANDstatic intASSIGN_BITORstatic intASSIGN_BITXORstatic intASSIGN_DIVstatic intASSIGN_EXPstatic intASSIGN_LSHstatic intASSIGN_MODstatic intASSIGN_MULstatic intASSIGN_RSHstatic intASSIGN_SUBstatic intASSIGN_URSHstatic intBIGINTToken types.static intBINDNAMEToken types.static intBITANDToken types.static intBITNOTToken types.static intBITORToken types.static intBITXORToken types.static intBLOCKstatic intBREAKstatic intCALLToken types.static intCASEstatic intCATCHstatic intCATCH_SCOPEToken types.static intCOLONstatic intCOLONCOLONstatic intCOMMAstatic intCOMMENTstatic intCONSTstatic intCONTINUEstatic intDEBUGGERstatic intDECstatic intDEFAULTstatic intDEFAULTNAMESPACEToken types.static intDEL_REFToken types.static intDELPROPToken types.static intDIVToken types.static intDOstatic intDOTstatic intDOTDOTstatic intDOTDOTDOTstatic intDOTQUERYstatic intELSEstatic intEMPTYstatic intENTERWITHToken types.static intENUM_IDToken types.static intENUM_INIT_ARRAYToken types.static intENUM_INIT_KEYSToken types.static intENUM_INIT_VALUESToken types.static intENUM_INIT_VALUES_IN_ORDERToken types.static intENUM_NEXTToken types.static intEOFToken types.static intEOLToken types.static intEQToken types.static intERRORToken types.static intESCXMLATTRToken types.static intESCXMLTEXTToken types.static intEXPToken types.static intEXPORTstatic intEXPR_RESULTstatic intEXPR_VOIDstatic intFALSEToken types.static intFINALLYstatic intFIRST_ASSIGNstatic intFIRST_BYTECODE_TOKENToken types.static intFORstatic intFUNCTIONstatic intGEToken types.static intGENEXPRstatic intGETstatic intGET_REFToken types.static intGETELEMToken types.static intGETPROPToken types.static intGETPROPNOWARNToken types.static intGETVARToken types.static intGOTOToken types.static intGTToken types.static intHOOKstatic intIFstatic intIFEQToken types.static intIFNEToken types.static intIMPORTstatic intINToken types.static intINCstatic intINSTANCEOFToken types.static intJSRstatic intLABELstatic intLAST_ASSIGNstatic intLAST_BYTECODE_TOKENstatic intLAST_TOKENstatic intLBstatic intLCstatic intLEToken types.static intLEAVEWITHToken types.static intLETstatic intLETEXPRstatic intLOCAL_BLOCKstatic intLOCAL_LOADToken types.static intLOOPstatic intLPstatic intLSHToken types.static intLTToken types.static intMETHODstatic intMODToken types.static intMULToken types.static intNAMEToken types.static intNEToken types.static intNEGToken types.static intNEWToken types.static intNOTToken types.static intNULLToken types.static intNUMBERToken types.static intOBJECTLITToken types.static intORstatic intPOSToken types.static booleanprintTreesstatic intRBstatic intRCstatic intREF_CALLToken types.static intREF_MEMBERToken types.static intREF_NAMEToken types.static intREF_NS_MEMBERToken types.static intREF_NS_NAMEToken types.static intREF_SPECIALToken types.static intREGEXPToken types.static intRESERVEDstatic intRETHROWToken types.static intRETURNToken types.static intRETURN_RESULTToken types.static intRPstatic intRSHToken types.static intSCRIPTstatic intSEMIstatic intSETstatic intSET_REFToken types.static intSET_REF_OPstatic intSETCONSTstatic intSETCONSTVARstatic intSETELEMToken types.static intSETELEM_OPstatic intSETNAMEToken types.static intSETPROPToken types.static intSETPROP_OPstatic intSETVARToken types.static intSHEQToken types.static intSHNEToken types.static intSTRICT_SETNAMEToken types.static intSTRINGToken types.static intSUBToken types.static intSWITCHstatic intTAGGED_TEMPLATE_LITERALstatic intTARGETstatic intTEMPLATE_CHARSstatic intTEMPLATE_LITERALstatic intTEMPLATE_LITERAL_SUBSTstatic intTHISToken types.static intTHISFNToken types.static intTHROWToken types.static intTO_DOUBLEstatic intTO_OBJECTstatic intTRUEToken types.static intTRYstatic intTYPEOFToken types.static intTYPEOFNAMEstatic intURSHToken types.static intUSE_STACKstatic intVARstatic intVOIDstatic intWHILEstatic intWITHstatic intWITHEXPRstatic intXMLstatic intXMLATTRstatic intXMLENDstatic intYIELDToken types.static intYIELD_STAR
 - 
Constructor SummaryConstructors Constructor Description Token()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisValidToken(int code)Return true if the passed code is a valid Token constant.static java.lang.StringkeywordToName(int token)Convert a keyword token to a name string for use with theContext.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIERfeature.static java.lang.Stringname(int token)Returns a name for the token.static java.lang.StringtypeToName(int token)Always returns a human-readable string for the token name.
 
- 
- 
- 
Field Detail- 
printTreespublic static final boolean printTrees - See Also:
- Constant Field Values
 
 - 
ERRORpublic static final int ERROR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
EOFpublic static final int EOF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
EOLpublic static final int EOL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
FIRST_BYTECODE_TOKENpublic static final int FIRST_BYTECODE_TOKEN Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENTERWITHpublic static final int ENTERWITH Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LEAVEWITHpublic static final int LEAVEWITH Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
RETURNpublic static final int RETURN Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GOTOpublic static final int GOTO Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
IFEQpublic static final int IFEQ Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
IFNEpublic static final int IFNE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SETNAMEpublic static final int SETNAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BITORpublic static final int BITOR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BITXORpublic static final int BITXOR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BITANDpublic static final int BITAND Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
EQpublic static final int EQ Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NEpublic static final int NE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LTpublic static final int LT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LEpublic static final int LE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GTpublic static final int GT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GEpublic static final int GE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LSHpublic static final int LSH Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
RSHpublic static final int RSH Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
URSHpublic static final int URSH Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ADDpublic static final int ADD Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SUBpublic static final int SUB Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
MULpublic static final int MUL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
DIVpublic static final int DIV Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
MODpublic static final int MOD Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NOTpublic static final int NOT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BITNOTpublic static final int BITNOT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
POSpublic static final int POS Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NEGpublic static final int NEG Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NEWpublic static final int NEW Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
DELPROPpublic static final int DELPROP Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
TYPEOFpublic static final int TYPEOF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GETPROPpublic static final int GETPROP Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GETPROPNOWARNpublic static final int GETPROPNOWARN Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SETPROPpublic static final int SETPROP Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GETELEMpublic static final int GETELEM Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SETELEMpublic static final int SETELEM Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
CALLpublic static final int CALL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NAMEpublic static final int NAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NUMBERpublic static final int NUMBER Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
STRINGpublic static final int STRING Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
NULLpublic static final int NULL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
THISpublic static final int THIS Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
FALSEpublic static final int FALSE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
TRUEpublic static final int TRUE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SHEQpublic static final int SHEQ Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SHNEpublic static final int SHNE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REGEXPpublic static final int REGEXP Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BINDNAMEpublic static final int BINDNAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
THROWpublic static final int THROW Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
RETHROWpublic static final int RETHROW Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
INpublic static final int IN Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
INSTANCEOFpublic static final int INSTANCEOF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LOCAL_LOADpublic static final int LOCAL_LOAD Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GETVARpublic static final int GETVAR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SETVARpublic static final int SETVAR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
CATCH_SCOPEpublic static final int CATCH_SCOPE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_INIT_KEYSpublic static final int ENUM_INIT_KEYS Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_INIT_VALUESpublic static final int ENUM_INIT_VALUES Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_INIT_ARRAYpublic static final int ENUM_INIT_ARRAY Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_INIT_VALUES_IN_ORDERpublic static final int ENUM_INIT_VALUES_IN_ORDER Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_NEXTpublic static final int ENUM_NEXT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ENUM_IDpublic static final int ENUM_ID Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
THISFNpublic static final int THISFN Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
RETURN_RESULTpublic static final int RETURN_RESULT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ARRAYLITpublic static final int ARRAYLIT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
OBJECTLITpublic static final int OBJECTLIT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
GET_REFpublic static final int GET_REF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
SET_REFpublic static final int SET_REF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
DEL_REFpublic static final int DEL_REF Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_CALLpublic static final int REF_CALL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_SPECIALpublic static final int REF_SPECIAL Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
YIELDpublic static final int YIELD Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
STRICT_SETNAMEpublic static final int STRICT_SETNAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
EXPpublic static final int EXP Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
DEFAULTNAMESPACEpublic static final int DEFAULTNAMESPACE Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ESCXMLATTRpublic static final int ESCXMLATTR Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
ESCXMLTEXTpublic static final int ESCXMLTEXT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_MEMBERpublic static final int REF_MEMBER Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_NS_MEMBERpublic static final int REF_NS_MEMBER Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_NAMEpublic static final int REF_NAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
REF_NS_NAMEpublic static final int REF_NS_NAME Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
BIGINTpublic static final int BIGINT Token types. These values correspond to JSTokenType values in jsscan.c.- See Also:
- Constant Field Values
 
 - 
LAST_BYTECODE_TOKENpublic static final int LAST_BYTECODE_TOKEN - See Also:
- Constant Field Values
 
 - 
TRYpublic static final int TRY - See Also:
- Constant Field Values
 
 - 
SEMIpublic static final int SEMI - See Also:
- Constant Field Values
 
 - 
LBpublic static final int LB - See Also:
- Constant Field Values
 
 - 
RBpublic static final int RB - See Also:
- Constant Field Values
 
 - 
LCpublic static final int LC - See Also:
- Constant Field Values
 
 - 
RCpublic static final int RC - See Also:
- Constant Field Values
 
 - 
LPpublic static final int LP - See Also:
- Constant Field Values
 
 - 
RPpublic static final int RP - See Also:
- Constant Field Values
 
 - 
COMMApublic static final int COMMA - See Also:
- Constant Field Values
 
 - 
ASSIGNpublic static final int ASSIGN - See Also:
- Constant Field Values
 
 - 
ASSIGN_BITORpublic static final int ASSIGN_BITOR - See Also:
- Constant Field Values
 
 - 
ASSIGN_BITXORpublic static final int ASSIGN_BITXOR - See Also:
- Constant Field Values
 
 - 
ASSIGN_BITANDpublic static final int ASSIGN_BITAND - See Also:
- Constant Field Values
 
 - 
ASSIGN_LSHpublic static final int ASSIGN_LSH - See Also:
- Constant Field Values
 
 - 
ASSIGN_RSHpublic static final int ASSIGN_RSH - See Also:
- Constant Field Values
 
 - 
ASSIGN_URSHpublic static final int ASSIGN_URSH - See Also:
- Constant Field Values
 
 - 
ASSIGN_ADDpublic static final int ASSIGN_ADD - See Also:
- Constant Field Values
 
 - 
ASSIGN_SUBpublic static final int ASSIGN_SUB - See Also:
- Constant Field Values
 
 - 
ASSIGN_MULpublic static final int ASSIGN_MUL - See Also:
- Constant Field Values
 
 - 
ASSIGN_DIVpublic static final int ASSIGN_DIV - See Also:
- Constant Field Values
 
 - 
ASSIGN_MODpublic static final int ASSIGN_MOD - See Also:
- Constant Field Values
 
 - 
ASSIGN_EXPpublic static final int ASSIGN_EXP - See Also:
- Constant Field Values
 
 - 
FIRST_ASSIGNpublic static final int FIRST_ASSIGN - See Also:
- Constant Field Values
 
 - 
LAST_ASSIGNpublic static final int LAST_ASSIGN - See Also:
- Constant Field Values
 
 - 
HOOKpublic static final int HOOK - See Also:
- Constant Field Values
 
 - 
COLONpublic static final int COLON - See Also:
- Constant Field Values
 
 - 
ORpublic static final int OR - See Also:
- Constant Field Values
 
 - 
ANDpublic static final int AND - See Also:
- Constant Field Values
 
 - 
INCpublic static final int INC - See Also:
- Constant Field Values
 
 - 
DECpublic static final int DEC - See Also:
- Constant Field Values
 
 - 
DOTpublic static final int DOT - See Also:
- Constant Field Values
 
 - 
FUNCTIONpublic static final int FUNCTION - See Also:
- Constant Field Values
 
 - 
EXPORTpublic static final int EXPORT - See Also:
- Constant Field Values
 
 - 
IMPORTpublic static final int IMPORT - See Also:
- Constant Field Values
 
 - 
IFpublic static final int IF - See Also:
- Constant Field Values
 
 - 
ELSEpublic static final int ELSE - See Also:
- Constant Field Values
 
 - 
SWITCHpublic static final int SWITCH - See Also:
- Constant Field Values
 
 - 
CASEpublic static final int CASE - See Also:
- Constant Field Values
 
 - 
DEFAULTpublic static final int DEFAULT - See Also:
- Constant Field Values
 
 - 
WHILEpublic static final int WHILE - See Also:
- Constant Field Values
 
 - 
DOpublic static final int DO - See Also:
- Constant Field Values
 
 - 
FORpublic static final int FOR - See Also:
- Constant Field Values
 
 - 
BREAKpublic static final int BREAK - See Also:
- Constant Field Values
 
 - 
CONTINUEpublic static final int CONTINUE - See Also:
- Constant Field Values
 
 - 
VARpublic static final int VAR - See Also:
- Constant Field Values
 
 - 
WITHpublic static final int WITH - See Also:
- Constant Field Values
 
 - 
CATCHpublic static final int CATCH - See Also:
- Constant Field Values
 
 - 
FINALLYpublic static final int FINALLY - See Also:
- Constant Field Values
 
 - 
VOIDpublic static final int VOID - See Also:
- Constant Field Values
 
 - 
RESERVEDpublic static final int RESERVED - See Also:
- Constant Field Values
 
 - 
EMPTYpublic static final int EMPTY - See Also:
- Constant Field Values
 
 - 
BLOCKpublic static final int BLOCK - See Also:
- Constant Field Values
 
 - 
LABELpublic static final int LABEL - See Also:
- Constant Field Values
 
 - 
TARGETpublic static final int TARGET - See Also:
- Constant Field Values
 
 - 
LOOPpublic static final int LOOP - See Also:
- Constant Field Values
 
 - 
EXPR_VOIDpublic static final int EXPR_VOID - See Also:
- Constant Field Values
 
 - 
EXPR_RESULTpublic static final int EXPR_RESULT - See Also:
- Constant Field Values
 
 - 
JSRpublic static final int JSR - See Also:
- Constant Field Values
 
 - 
SCRIPTpublic static final int SCRIPT - See Also:
- Constant Field Values
 
 - 
TYPEOFNAMEpublic static final int TYPEOFNAME - See Also:
- Constant Field Values
 
 - 
USE_STACKpublic static final int USE_STACK - See Also:
- Constant Field Values
 
 - 
SETPROP_OPpublic static final int SETPROP_OP - See Also:
- Constant Field Values
 
 - 
SETELEM_OPpublic static final int SETELEM_OP - See Also:
- Constant Field Values
 
 - 
LOCAL_BLOCKpublic static final int LOCAL_BLOCK - See Also:
- Constant Field Values
 
 - 
SET_REF_OPpublic static final int SET_REF_OP - See Also:
- Constant Field Values
 
 - 
DOTDOTpublic static final int DOTDOT - See Also:
- Constant Field Values
 
 - 
COLONCOLONpublic static final int COLONCOLON - See Also:
- Constant Field Values
 
 - 
XMLpublic static final int XML - See Also:
- Constant Field Values
 
 - 
DOTQUERYpublic static final int DOTQUERY - See Also:
- Constant Field Values
 
 - 
XMLATTRpublic static final int XMLATTR - See Also:
- Constant Field Values
 
 - 
XMLENDpublic static final int XMLEND - See Also:
- Constant Field Values
 
 - 
TO_OBJECTpublic static final int TO_OBJECT - See Also:
- Constant Field Values
 
 - 
TO_DOUBLEpublic static final int TO_DOUBLE - See Also:
- Constant Field Values
 
 - 
GETpublic static final int GET - See Also:
- Constant Field Values
 
 - 
SETpublic static final int SET - See Also:
- Constant Field Values
 
 - 
LETpublic static final int LET - See Also:
- Constant Field Values
 
 - 
CONSTpublic static final int CONST - See Also:
- Constant Field Values
 
 - 
SETCONSTpublic static final int SETCONST - See Also:
- Constant Field Values
 
 - 
SETCONSTVARpublic static final int SETCONSTVAR - See Also:
- Constant Field Values
 
 - 
ARRAYCOMPpublic static final int ARRAYCOMP - See Also:
- Constant Field Values
 
 - 
LETEXPRpublic static final int LETEXPR - See Also:
- Constant Field Values
 
 - 
WITHEXPRpublic static final int WITHEXPR - See Also:
- Constant Field Values
 
 - 
DEBUGGERpublic static final int DEBUGGER - See Also:
- Constant Field Values
 
 - 
COMMENTpublic static final int COMMENT - See Also:
- Constant Field Values
 
 - 
GENEXPRpublic static final int GENEXPR - See Also:
- Constant Field Values
 
 - 
METHODpublic static final int METHOD - See Also:
- Constant Field Values
 
 - 
ARROWpublic static final int ARROW - See Also:
- Constant Field Values
 
 - 
YIELD_STARpublic static final int YIELD_STAR - See Also:
- Constant Field Values
 
 - 
TEMPLATE_LITERALpublic static final int TEMPLATE_LITERAL - See Also:
- Constant Field Values
 
 - 
TEMPLATE_CHARSpublic static final int TEMPLATE_CHARS - See Also:
- Constant Field Values
 
 - 
TEMPLATE_LITERAL_SUBSTpublic static final int TEMPLATE_LITERAL_SUBST - See Also:
- Constant Field Values
 
 - 
TAGGED_TEMPLATE_LITERALpublic static final int TAGGED_TEMPLATE_LITERAL - See Also:
- Constant Field Values
 
 - 
DOTDOTDOTpublic static final int DOTDOTDOT - See Also:
- Constant Field Values
 
 - 
LAST_TOKENpublic static final int LAST_TOKEN - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
namepublic static java.lang.String name(int token) Returns a name for the token. If Rhino is compiled with certain hardcoded debugging flags in this file, it calls#typeToName; otherwise it returns a string whose value is the token number.
 - 
typeToNamepublic static java.lang.String typeToName(int token) Always returns a human-readable string for the token name. For instance,FINALLYhas the name "FINALLY".- Parameters:
- token- the token code
- Returns:
- the actual name for the token code
 
 - 
keywordToNamepublic static java.lang.String keywordToName(int token) Convert a keyword token to a name string for use with theContext.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIERfeature.- Parameters:
- token- A token
- Returns:
- the corresponding name string
 
 - 
isValidTokenpublic static boolean isValidToken(int code) Return true if the passed code is a valid Token constant.- Parameters:
- code- a potential token code
- Returns:
- true if it's a known token
 
 
- 
 
-