Class ProtoParserTokenManager
java.lang.Object
org.fusesource.hawtbuf.proto.compiler.parser.ProtoParserTokenManager
- All Implemented Interfaces:
ProtoParserConstants
Token Manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
(package private) int
Debug output.(package private) int
private StringBuilder
protected SimpleCharStream
(package private) static final long[]
private final StringBuilder
private int
(package private) int
(package private) int
static final int[]
Lex State array.(package private) int
(package private) static final int[]
(package private) int
private final int[]
private final int[]
static final String[]
Token literal values.(package private) static final long[]
(package private) static final long[]
(package private) static final long[]
(package private) static final long[]
private int
static final String[]
Lexer state names.Fields inherited from interface org.fusesource.hawtbuf.proto.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.private void
jjAddStates
(int start, int end) private void
jjCheckNAdd
(int state) private void
jjCheckNAddStates
(int start, int end) private void
jjCheckNAddTwoStates
(int state1, int state2) protected Token
private int
jjMoveNfa_0
(int startState, int curPos) private int
jjMoveNfa_1
(int startState, int curPos) private int
private int
private int
jjMoveStringLiteralDfa1_0
(long active0) private int
jjMoveStringLiteralDfa2_0
(long old0, long active0) private int
jjMoveStringLiteralDfa3_0
(long old0, long active0) private int
jjMoveStringLiteralDfa4_0
(long old0, long active0) private int
jjMoveStringLiteralDfa5_0
(long old0, long active0) private int
jjMoveStringLiteralDfa6_0
(long old0, long active0) private int
jjMoveStringLiteralDfa7_0
(long old0, long active0) private int
jjMoveStringLiteralDfa8_0
(long old0, long active0) private int
jjMoveStringLiteralDfa9_0
(long old0, long active0) private final int
jjStartNfa_0
(int pos, long active0) private int
jjStartNfaWithStates_0
(int pos, int kind, int state) private int
jjStopAtPos
(int pos, int kind) private final int
jjStopStringLiteralDfa_0
(int pos, long active0) (package private) void
void
ReInit
(SimpleCharStream stream) Reinitialise parser.void
ReInit
(SimpleCharStream stream, int lexState) Reinitialise parser.private void
void
Set debug output.(package private) void
SkipLexicalActions
(Token matchedToken) void
SwitchTo
(int lexState) Switch to specified lex state.(package private) void
TokenLexicalActions
(Token matchedToken)
-
Field Details
-
debugStream
Debug output. -
jjbitVec0
static final long[] jjbitVec0 -
jjstrLiteralImages
Token literal values. -
jjnextStates
static final int[] jjnextStates -
curLexState
int curLexState -
defaultLexState
int defaultLexState -
jjnewStateCnt
int jjnewStateCnt -
jjround
int jjround -
jjmatchedPos
int jjmatchedPos -
jjmatchedKind
int jjmatchedKind -
lexStateNames
Lexer state names. -
jjnewLexState
public static final int[] jjnewLexStateLex State array. -
jjtoToken
static final long[] jjtoToken -
jjtoSkip
static final long[] jjtoSkip -
jjtoSpecial
static final long[] jjtoSpecial -
jjtoMore
static final long[] jjtoMore -
input_stream
-
jjrounds
private final int[] jjrounds -
jjstateSet
private final int[] jjstateSet -
jjimage
-
image
-
jjimageLen
private int jjimageLen -
lengthOfMatch
private int lengthOfMatch -
curChar
protected int curChar
-
-
Constructor Details
-
ProtoParserTokenManager
Constructor. -
ProtoParserTokenManager
Constructor.
-
-
Method Details
-
setDebugStream
Set debug output. -
jjStopStringLiteralDfa_0
private final int jjStopStringLiteralDfa_0(int pos, long active0) -
jjStartNfa_0
private final int jjStartNfa_0(int pos, long active0) -
jjStopAtPos
private int jjStopAtPos(int pos, int kind) -
jjMoveStringLiteralDfa0_0
private int jjMoveStringLiteralDfa0_0() -
jjMoveStringLiteralDfa1_0
private int jjMoveStringLiteralDfa1_0(long active0) -
jjMoveStringLiteralDfa2_0
private int jjMoveStringLiteralDfa2_0(long old0, long active0) -
jjMoveStringLiteralDfa3_0
private int jjMoveStringLiteralDfa3_0(long old0, long active0) -
jjMoveStringLiteralDfa4_0
private int jjMoveStringLiteralDfa4_0(long old0, long active0) -
jjMoveStringLiteralDfa5_0
private int jjMoveStringLiteralDfa5_0(long old0, long active0) -
jjMoveStringLiteralDfa6_0
private int jjMoveStringLiteralDfa6_0(long old0, long active0) -
jjMoveStringLiteralDfa7_0
private int jjMoveStringLiteralDfa7_0(long old0, long active0) -
jjMoveStringLiteralDfa8_0
private int jjMoveStringLiteralDfa8_0(long old0, long active0) -
jjMoveStringLiteralDfa9_0
private int jjMoveStringLiteralDfa9_0(long old0, long active0) -
jjStartNfaWithStates_0
private int jjStartNfaWithStates_0(int pos, int kind, int state) -
jjMoveNfa_0
private int jjMoveNfa_0(int startState, int curPos) -
jjMoveStringLiteralDfa0_1
private int jjMoveStringLiteralDfa0_1() -
jjMoveNfa_1
private int jjMoveNfa_1(int startState, int curPos) -
jjFillToken
-
getNextToken
Get the next Token. -
SkipLexicalActions
-
MoreLexicalActions
void MoreLexicalActions() -
TokenLexicalActions
-
jjCheckNAdd
private void jjCheckNAdd(int state) -
jjAddStates
private void jjAddStates(int start, int end) -
jjCheckNAddTwoStates
private void jjCheckNAddTwoStates(int state1, int state2) -
jjCheckNAddStates
private void jjCheckNAddStates(int start, int end) -
ReInit
Reinitialise parser. -
ReInitRounds
private void ReInitRounds() -
ReInit
Reinitialise parser. -
SwitchTo
public void SwitchTo(int lexState) Switch to specified lex state.
-