Class PythonParserTokenManager
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractTokenManager
-
- net.sourceforge.pmd.lang.python.ast.PythonParserTokenManager
-
- All Implemented Interfaces:
PythonParserConstants
public class PythonParserTokenManager extends net.sourceforge.pmd.lang.ast.AbstractTokenManager implements PythonParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected charcurCharjava.io.PrintStreamdebugStreamDebug output.protected net.sourceforge.pmd.lang.ast.CharStreaminput_streamstatic int[]jjnewLexStateLex State array.static java.lang.String[]jjstrLiteralImagesToken literal values.static java.lang.String[]lexStateNamesLexer state names.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractTokenManager
suppressMap, suppressMarker
-
Fields inherited from interface net.sourceforge.pmd.lang.python.ast.PythonParserConstants
AND, AND_BOOL, ANDEQ, AS, ASSERT, AT, BINNUMBER, BREAK, CLASS, COLON, COMMA, COMPLEX, CONTINUATION, CONTINUE, DECNUMBER, DEF, DEFAULT, DEL, DIGIT, DIVIDE, DIVIDEEQ, DOT, ELIF, ELSE, EOF, EQEQUAL, EQGREATER, EQLESS, EQUAL, EXCEPT, EXEC, EXPONENT, FINALLY, FLOAT, FLOORDIVIDE, FLOORDIVIDEEQ, FOR, FROM, GLOBAL, GREATER, HEXNUMBER, IF, IMPORT, IN, IN_BSTRING11, IN_BSTRING13, IN_BSTRING1NLC, IN_BSTRING21, IN_BSTRING23, IN_BSTRING2NLC, IN_STRING11, IN_STRING13, IN_STRING1NLC, IN_STRING21, IN_STRING23, IN_STRING2NLC, IN_USTRING11, IN_USTRING13, IN_USTRING1NLC, IN_USTRING21, IN_USTRING23, IN_USTRING2NLC, IS, LAMBDA, LBRACE, LBRACKET, LESS, LESSGREATER, LETTER, LPAREN, LSHIFT, LSHIFTEQ, MINUS, MINUSEQ, MODULO, MODULOEQ, MULTIPLY, MULTIPLYEQ, NAME, NEWLINE, NOT, NOT_BOOL, NOTEQUAL, OCTNUMBER, OR, OR_BOOL, OREQ, PASS, PLUS, PLUSEQ, POWER, POWEREQ, PRINT, RAISE, RBRACE, RBRACKET, RETURN, RPAREN, RSHIFT, RSHIFTEQ, SEMICOLON, SINGLE_BSTRING, SINGLE_BSTRING2, SINGLE_STRING, SINGLE_STRING2, SINGLE_USTRING, SINGLE_USTRING2, SPACE, tokenImage, TRAILING_COMMENT, TRIPLE_BSTRING, TRIPLE_BSTRING2, TRIPLE_STRING, TRIPLE_STRING2, TRIPLE_USTRING, TRIPLE_USTRING2, TRY, WHILE, WITH, XOR, XOREQ, YIELD
-
-
Constructor Summary
Constructors Constructor Description PythonParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream)Constructor.PythonParserTokenManager(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(java.io.PrintStream ds)Set debug output.voidSwitchTo(int lexState)Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.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(java.io.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.
-
-