xjavadoc

Class SimpleParserTokenManager

public class SimpleParserTokenManager extends Object implements SimpleParserConstants

Token Manager.
Field Summary
protected charcurChar
intcurLexState
PrintStreamdebugStream
Debug output.
intdefaultLexState
StringBufferimage
protected JavaCharStreaminput_stream
static long[]jjbitVec0
static long[]jjbitVec2
static long[]jjbitVec3
static long[]jjbitVec4
static long[]jjbitVec5
static long[]jjbitVec6
static long[]jjbitVec7
static long[]jjbitVec8
StringBufferjjimage
intjjimageLen
intjjmatchedKind
intjjmatchedPos
static int[]jjnewLexState
Lex State array.
intjjnewStateCnt
static int[]jjnextStates
intjjround
int[]jjrounds
int[]jjstateSet
static String[]jjstrLiteralImages
Token literal values.
static long[]jjtoMore
static long[]jjtoSkip
static long[]jjtoSpecial
static long[]jjtoToken
intlengthOfMatch
static String[]lexStateNames
Lexer state names.
Constructor Summary
SimpleParserTokenManager(JavaCharStream stream)
Constructor.
SimpleParserTokenManager(JavaCharStream stream, int lexState)
Constructor.
Method Summary
TokengetNextToken()
Get the next Token.
voidjjAddStates(int start, int end)
static booleanjjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
static booleanjjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
voidjjCheckNAdd(int state)
voidjjCheckNAddStates(int start, int end)
voidjjCheckNAddTwoStates(int state1, int state2)
protected TokenjjFillToken()
intjjMoveNfa_0(int startState, int curPos)
intjjMoveNfa_1(int startState, int curPos)
intjjMoveStringLiteralDfa0_0()
intjjMoveStringLiteralDfa0_1()
intjjMoveStringLiteralDfa0_2()
intjjMoveStringLiteralDfa0_3()
intjjMoveStringLiteralDfa10_0(long old0, long active0)
intjjMoveStringLiteralDfa11_0(long old0, long active0)
intjjMoveStringLiteralDfa1_0(long active0, long active1)
intjjMoveStringLiteralDfa1_2(long active0)
intjjMoveStringLiteralDfa1_3(long active0)
intjjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
intjjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
intjjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
intjjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
intjjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
intjjMoveStringLiteralDfa7_0(long old0, long active0)
intjjMoveStringLiteralDfa8_0(long old0, long active0)
intjjMoveStringLiteralDfa9_0(long old0, long active0)
intjjStartNfaWithStates_0(int pos, int kind, int state)
intjjStartNfa_0(int pos, long active0, long active1)
intjjStopAtPos(int pos, int kind)
intjjStopStringLiteralDfa_0(int pos, long active0, long active1)
voidMoreLexicalActions()
voidReInit(JavaCharStream stream)
Reinitialise parser.
voidReInit(JavaCharStream stream, int lexState)
Reinitialise parser.
voidReInitRounds()
voidsetDebugStream(PrintStream ds)
Set debug output.
voidSkipLexicalActions(Token matchedToken)
voidSwitchTo(int lexState)
Switch to specified lex state.

Field Detail

curChar

protected char curChar

curLexState

int curLexState

debugStream

public PrintStream debugStream
Debug output.

defaultLexState

int defaultLexState

image

private StringBuffer image

input_stream

protected JavaCharStream input_stream

jjbitVec0

static final long[] jjbitVec0

jjbitVec2

static final long[] jjbitVec2

jjbitVec3

static final long[] jjbitVec3

jjbitVec4

static final long[] jjbitVec4

jjbitVec5

static final long[] jjbitVec5

jjbitVec6

static final long[] jjbitVec6

jjbitVec7

static final long[] jjbitVec7

jjbitVec8

static final long[] jjbitVec8

jjimage

private final StringBuffer jjimage

jjimageLen

private int jjimageLen

jjmatchedKind

int jjmatchedKind

jjmatchedPos

int jjmatchedPos

jjnewLexState

public static final int[] jjnewLexState
Lex State array.

jjnewStateCnt

int jjnewStateCnt

jjnextStates

static final int[] jjnextStates

jjround

int jjround

jjrounds

private final int[] jjrounds

jjstateSet

private final int[] jjstateSet

jjstrLiteralImages

public static final String[] jjstrLiteralImages
Token literal values.

jjtoMore

static final long[] jjtoMore

jjtoSkip

static final long[] jjtoSkip

jjtoSpecial

static final long[] jjtoSpecial

jjtoToken

static final long[] jjtoToken

lengthOfMatch

private int lengthOfMatch

lexStateNames

public static final String[] lexStateNames
Lexer state names.

Constructor Detail

SimpleParserTokenManager

public SimpleParserTokenManager(JavaCharStream stream)
Constructor.

SimpleParserTokenManager

public SimpleParserTokenManager(JavaCharStream stream, int lexState)
Constructor.

Method Detail

getNextToken

public Token getNextToken()
Get the next Token.

jjAddStates

private void jjAddStates(int start, int end)

jjCanMove_0

private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)

jjCanMove_1

private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)

jjCheckNAdd

private void jjCheckNAdd(int state)

jjCheckNAddStates

private void jjCheckNAddStates(int start, int end)

jjCheckNAddTwoStates

private void jjCheckNAddTwoStates(int state1, int state2)

jjFillToken

protected Token jjFillToken()

jjMoveNfa_0

private int jjMoveNfa_0(int startState, int curPos)

jjMoveNfa_1

private int jjMoveNfa_1(int startState, int curPos)

jjMoveStringLiteralDfa0_0

private int jjMoveStringLiteralDfa0_0()

jjMoveStringLiteralDfa0_1

private int jjMoveStringLiteralDfa0_1()

jjMoveStringLiteralDfa0_2

private int jjMoveStringLiteralDfa0_2()

jjMoveStringLiteralDfa0_3

private int jjMoveStringLiteralDfa0_3()

jjMoveStringLiteralDfa10_0

private int jjMoveStringLiteralDfa10_0(long old0, long active0)

jjMoveStringLiteralDfa11_0

private int jjMoveStringLiteralDfa11_0(long old0, long active0)

jjMoveStringLiteralDfa1_0

private int jjMoveStringLiteralDfa1_0(long active0, long active1)

jjMoveStringLiteralDfa1_2

private int jjMoveStringLiteralDfa1_2(long active0)

jjMoveStringLiteralDfa1_3

private int jjMoveStringLiteralDfa1_3(long active0)

jjMoveStringLiteralDfa2_0

private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)

jjMoveStringLiteralDfa3_0

private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)

jjMoveStringLiteralDfa4_0

private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)

jjMoveStringLiteralDfa5_0

private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)

jjMoveStringLiteralDfa6_0

private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)

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)

jjStartNfa_0

private final int jjStartNfa_0(int pos, long active0, long active1)

jjStopAtPos

private int jjStopAtPos(int pos, int kind)

jjStopStringLiteralDfa_0

private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)

MoreLexicalActions

void MoreLexicalActions()

ReInit

public void ReInit(JavaCharStream stream)
Reinitialise parser.

ReInit

public void ReInit(JavaCharStream stream, int lexState)
Reinitialise parser.

ReInitRounds

private void ReInitRounds()

setDebugStream

public void setDebugStream(PrintStream ds)
Set debug output.

SkipLexicalActions

void SkipLexicalActions(Token matchedToken)

SwitchTo

public void SwitchTo(int lexState)
Switch to specified lex state.