org.python.parser
Class PythonGrammarTokenManager

java.lang.Object
  extended byorg.python.parser.PythonGrammarTokenManager
All Implemented Interfaces:
PythonGrammarConstants

public class PythonGrammarTokenManager
extends Object
implements PythonGrammarConstants


Field Summary
 PrintStream debugStream
           
 boolean forcedNewline
           
static int[] jjnewLexState
           
static String[] jjstrLiteralImages
           
static String[] lexStateNames
           
 
Fields inherited from interface org.python.parser.PythonGrammarConstants
AND, AND_BOOL, ANDEQ, AS, ASSERT, BIDIREDGE, BREAK, CLASS, COLON, COMMA, CONTINUATION, CONTINUE, CRLF1, DECNUMBER, DEDENT, DEF, DEFAULT, DEL, DIGIT, DIVIDE, DIVIDEEQ, DOT, ELIF, ELSE, EOF, EQEQUAL, EQGREATER, EQLESS, EQUAL, EXCEPT, EXEC, EXPONENT, FINALLY, FLOAT, FOR, FORCE_NEWLINE, FORCE_NEWLINE1, FORCE_NEWLINE2, FROM, GLOBAL, GREATER, HEXNUMBER, IF, IMPORT, IN, IN_STRING11, IN_STRING13, IN_STRING21, IN_STRING23, INDENT, INDENTATION_UNCHANGED, INDENTING, IS, LAMBDA, LBRACE, LBRACKET, LEFTDIREDGE, LESS, LESSGREATER, LETTER, LIKE, LPAREN, LSHIFT, LSHIFTEQ, MINUS, MINUSEQ, MODULO, MODULOEQ, MULTIPLY, MULTIPLYEQ, NAME, NEWLINE, NEWLINE1, NEWLINE2, NEWLINE3, NOT, NOT_BOOL, NOTEQUAL, OCTNUMBER, OR, OR_BOOL, OREQ, PASS, PLUS, PLUSEQ, POWER, POWEREQ, PRINT, QUESTIONM, RAISE, RBRACE, RBRACKET, RCONTAINED, RCONTAINS, RETURN, REXACT, RIGHTDIREDGE, ROVERLAPS, RPAREN, RSHIFT, RSHIFTEQ, SEMICOLON, SINGLE_LINE_COMMENT, SINGLE_STRING, SINGLE_STRING2, SPACE, tokenImage, TRAILING_COMMENT, TRIPLE_STRING, TRIPLE_STRING2, TRY, UNREACHABLE, WHILE, XOR, XOREQ
 
Constructor Summary
PythonGrammarTokenManager(CharStream stream)
           
PythonGrammarTokenManager(CharStream stream, int lexState)
           
 
Method Summary
 Token getNextToken()
           
 void ReInit(CharStream stream)
           
 void ReInit(CharStream stream, int lexState)
           
 void setDebugStream(PrintStream ds)
           
 void SwitchTo(int lexState)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

forcedNewline

public boolean forcedNewline

debugStream

public PrintStream debugStream

jjstrLiteralImages

public static final String[] jjstrLiteralImages

lexStateNames

public static final String[] lexStateNames

jjnewLexState

public static final int[] jjnewLexState
Constructor Detail

PythonGrammarTokenManager

public PythonGrammarTokenManager(CharStream stream)

PythonGrammarTokenManager

public PythonGrammarTokenManager(CharStream stream,
                                 int lexState)
Method Detail

setDebugStream

public void setDebugStream(PrintStream ds)

ReInit

public void ReInit(CharStream stream)

ReInit

public void ReInit(CharStream stream,
                   int lexState)

SwitchTo

public void SwitchTo(int lexState)

getNextToken

public Token getNextToken()