Class ProtoParserTokenManager
java.lang.Object
org.apache.activemq.protobuf.compiler.parser.ProtoParserTokenManager
- All Implemented Interfaces:
ProtoParserConstants
Token Manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDebug output.protected SimpleCharStreamstatic final int[]Lex State array.static final String[]Token literal values.static final String[]Lexer state names.Fields inherited from interface org.apache.activemq.protobuf.compiler.parser.ProtoParserConstants
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 Summary
ConstructorsConstructorDescriptionConstructor.ProtoParserTokenManager(SimpleCharStream stream, int lexState) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the next Token.protected TokenvoidReInit(SimpleCharStream stream) Reinitialise parser.voidReInit(SimpleCharStream stream, int lexState) Reinitialise parser.voidSet debug output.voidSwitchTo(int lexState) Switch to specified lex state.
-
Field Details
-
debugStream
Debug output. -
jjstrLiteralImages
Token literal values. -
lexStateNames
Lexer state names. -
jjnewLexState
public static final int[] jjnewLexStateLex State array. -
input_stream
-
curChar
protected int curChar
-
-
Constructor Details
-
ProtoParserTokenManager
Constructor. -
ProtoParserTokenManager
Constructor.
-
-
Method Details
-
setDebugStream
Set debug output. -
jjFillToken
-
getNextToken
Get the next Token. -
ReInit
Reinitialise parser. -
ReInit
Reinitialise parser. -
SwitchTo
public void SwitchTo(int lexState) Switch to specified lex state.
-