Class Ecmascript5ParserTokenManager
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractTokenManager
-
- net.sourceforge.pmd.lang.ecmascript5.ast.Ecmascript5ParserTokenManager
-
- All Implemented Interfaces:
Ecmascript5ParserConstants
public class Ecmascript5ParserTokenManager extends net.sourceforge.pmd.lang.ast.AbstractTokenManager implements Ecmascript5ParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected charcurCharPrintStreamdebugStreamDebug output.protected net.sourceforge.pmd.lang.ast.CharStreaminput_streamstatic int[]jjnewLexStateLex State array.static String[]jjstrLiteralImagesToken literal values.static String[]lexStateNamesLexer state names.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
suppressMap, suppressMarker
-
Fields inherited from interface net.sourceforge.pmd.lang.ecmascript5.ast.Ecmascript5ParserConstants
_DEFAULT, ANDASSIGN, ASSIGN, BACKTICK_STRING_LITERAL_BODY, BANG, BIT_AND, BIT_OR, BOM, BREAK, CASE, CATCH, CLASS, COLON, COMMA, CONST, CONTINUE, CR, DEBUGGER, DECIMAL_LITERAL, DECR, DEFAULT, DELETE, DO, DOT, DOUBLE_STRING_LITERAL_BODY, ELSE, ENUM, EOF, EOL, EQ, EXPONENT, EXPORT, EXTENDS, FALSE, FF, FINALLY, FLOATING_POINT_LITERAL, FOR, FUNCTION, GE, GET, GT, HEX_DIGIT, HEX_LITERAL, HOOK, IDENTIFIER, IDENTIFIER_PART, IDENTIFIER_START, IF, IMPORT, IN, IN_JS_DOC_COMMENT, IN_MULTI_LINE_COMMENT, INCR, INSTANCEOF, JS_DOC_COMMENT, LBRACE, LBRACKET, LE, LET, LF, LPAREN, LS, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NBSP, NE, NEW, NL_DECR, NL_INCR, NO_SKIP_EOL, NOEOL, NOREGEXP, NULL, OCTAL_LITERAL, ORASSIGN, PLUS, PLUSASSIGN, PS, RBRACE, RBRACKET, REGULAR_EXPRESSION_BACKSLASH_SEQUENCE, REGULAR_EXPRESSION_BODY, REGULAR_EXPRESSION_CHAR, REGULAR_EXPRESSION_CLASS, REGULAR_EXPRESSION_CLASS_CHAR, REGULAR_EXPRESSION_FIRST_CHAR, REGULAR_EXPRESSION_LITERAL, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SET, SINGLE_LINE_COMMENT, SINGLE_STRING_LITERAL_BODY, SLASH, SLASHASSIGN, SP, STAR, STARASSIGN, STRICT_EQ, STRICT_NEQ, STRING_LITERAL, SUPER, SWITCH, TAB, THIS, THROW, TILDE, tokenImage, TRUE, TRY, TYPEOF, UNICODE_COMBINING_MARK, UNICODE_CONNECTOR_PUNCTUATION, UNICODE_DIGIT, UNICODE_ESCAPE_SEQUENCE, UNICODE_LETTER, UNTERMINATED_STRING_LITERAL, USP, VAR, VOID, VT, WHILE, WITH, XOR, XORASSIGN, ZWJ, ZWNJ
-
-
Constructor Summary
Constructors Constructor Description Ecmascript5ParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream)Constructor.Ecmascript5ParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokengetNextToken()Get the next Token.protected TokenjjFillToken()voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream)Reinitialise parser.voidReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Reinitialise parser.voidsetDebugStream(PrintStream ds)Set debug output.voidSwitchTo(int lexState)Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected net.sourceforge.pmd.lang.ast.CharStream input_stream
-
curChar
protected char curChar
-
-
Method Detail
-
setDebugStream
public void setDebugStream(PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-