public class ProtoParserTokenManager extends Object implements ProtoParserConstants
Modifier and Type | Field and Description |
---|---|
protected int |
curChar |
PrintStream |
debugStream
Debug output.
|
protected SimpleCharStream |
input_stream |
static int[] |
jjnewLexState
Lex State array.
|
static String[] |
jjstrLiteralImages
Token literal values.
|
static String[] |
lexStateNames
Lexer state names.
|
COMMA, COMMENT, DECIMAL_LITERAL, DEFAULT, ENUM, EOF, EQUALS, EXPONENT, EXTEND, EXTENSIONS, FLOAT, GROUP, HEX_LITERAL, ID, IMPORT, INTEGER, LBRACE, LBRACKET, LPAREN, MAX, MESSAGE, OCTAL_LITERAL, OPTION, OPTIONAL, PACKAGE, PERIOD, RBRACE, RBRACKET, REPEATED, REQURIED, RETURNS, RPAREN, RPC, SEMICOLON, SERVICE, STRING, TO, tokenImage
Constructor and Description |
---|
ProtoParserTokenManager(SimpleCharStream stream)
Constructor.
|
ProtoParserTokenManager(SimpleCharStream stream,
int lexState)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Token |
getNextToken()
Get the next Token.
|
protected Token |
jjFillToken() |
void |
ReInit(SimpleCharStream stream)
Reinitialise parser.
|
void |
ReInit(SimpleCharStream stream,
int lexState)
Reinitialise parser.
|
void |
setDebugStream(PrintStream ds)
Set debug output.
|
void |
SwitchTo(int lexState)
Switch to specified lex state.
|
public PrintStream debugStream
public static final String[] jjstrLiteralImages
public static final String[] lexStateNames
public static final int[] jjnewLexState
protected SimpleCharStream input_stream
protected int curChar
public ProtoParserTokenManager(SimpleCharStream stream)
public ProtoParserTokenManager(SimpleCharStream stream, int lexState)
public void setDebugStream(PrintStream ds)
protected Token jjFillToken()
public Token getNextToken()
public void ReInit(SimpleCharStream stream)
public void ReInit(SimpleCharStream stream, int lexState)
public void SwitchTo(int lexState)
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.