PythonParserConstants
public class PythonParserTokenManager extends net.sourceforge.pmd.lang.ast.AbstractTokenManager implements PythonParserConstants
Modifier and Type | Field | Description |
---|---|---|
protected char |
curChar |
|
java.io.PrintStream |
debugStream |
Debug output.
|
protected net.sourceforge.pmd.lang.ast.CharStream |
input_stream |
|
static int[] |
jjnewLexState |
Lex State array.
|
static java.lang.String[] |
jjstrLiteralImages |
Token literal values.
|
static java.lang.String[] |
lexStateNames |
Lexer state names.
|
suppressMap, suppressMarker
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 | Description |
---|---|
PythonParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream) |
Constructor.
|
PythonParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream,
int lexState) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Token |
getNextToken() |
Get the next Token.
|
protected Token |
jjFillToken() |
|
void |
ReInit(net.sourceforge.pmd.lang.ast.CharStream stream) |
Reinitialise parser.
|
void |
ReInit(net.sourceforge.pmd.lang.ast.CharStream stream,
int lexState) |
Reinitialise parser.
|
void |
setDebugStream(java.io.PrintStream ds) |
Set debug output.
|
void |
SwitchTo(int lexState) |
Switch to specified lex state.
|
public java.io.PrintStream debugStream
public static final java.lang.String[] jjstrLiteralImages
public static final java.lang.String[] lexStateNames
public static final int[] jjnewLexState
protected net.sourceforge.pmd.lang.ast.CharStream input_stream
protected char curChar
public PythonParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream)
public PythonParserTokenManager(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)
public void setDebugStream(java.io.PrintStream ds)
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream)
public void ReInit(net.sourceforge.pmd.lang.ast.CharStream stream, int lexState)
public void SwitchTo(int lexState)
protected Token jjFillToken()
public Token getNextToken()
Copyright © 2002–2018 PMD. All rights reserved.