net.sourceforge.pmd.lang.ecmascript5.ast
Class Ecmascript5ParserTokenManager

java.lang.Object
  extended by net.sourceforge.pmd.lang.ast.AbstractTokenManager
      extended by net.sourceforge.pmd.lang.ecmascript5.ast.Ecmascript5ParserTokenManager
All Implemented Interfaces:
Ecmascript5ParserConstants

public class Ecmascript5ParserTokenManager
extends AbstractTokenManager
implements Ecmascript5ParserConstants

Token Manager.


Field Summary
protected  char curChar
           
 PrintStream debugStream
          Debug output.
protected  CharStream input_stream
           
static int[] jjnewLexState
          Lex State array.
static String[] jjstrLiteralImages
          Token literal values.
static String[] lexStateNames
          Lexer 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, 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
Ecmascript5ParserTokenManager(CharStream stream)
          Constructor.
Ecmascript5ParserTokenManager(CharStream stream, int lexState)
          Constructor.
 
Method Summary
 Token getNextToken()
          Get the next Token.
protected  Token jjFillToken()
           
 void ReInit(CharStream stream)
          Reinitialise parser.
 void ReInit(CharStream stream, int lexState)
          Reinitialise parser.
 void setDebugStream(PrintStream ds)
          Set debug output.
 void SwitchTo(int lexState)
          Switch to specified lex state.
 
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
getFileName, getSuppressMap, setFileName, setSuppressMarker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 CharStream input_stream

curChar

protected char curChar
Constructor Detail

Ecmascript5ParserTokenManager

public Ecmascript5ParserTokenManager(CharStream stream)
Constructor.


Ecmascript5ParserTokenManager

public Ecmascript5ParserTokenManager(CharStream stream,
                                     int lexState)
Constructor.

Method Detail

setDebugStream

public void setDebugStream(PrintStream ds)
Set debug output.


ReInit

public void ReInit(CharStream stream)
Reinitialise parser.


ReInit

public void ReInit(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.



Copyright © 2002-2016 InfoEther. All Rights Reserved.