Class CopyTokenManager (0.5.1)

public class CopyTokenManager implements CopyConstants

Token Manager.

Inheritance

java.lang.Object > CopyTokenManager

Implements

CopyConstants

Static Fields

jjnewLexState

public static final int[] jjnewLexState

Lex State array.

Field Value
TypeDescription
int[]

jjstrLiteralImages

public static final String[] jjstrLiteralImages

Token literal values.

Field Value
TypeDescription
String[]

lexStateNames

public static final String[] lexStateNames

Lexer state names.

Field Value
TypeDescription
String[]

Constructors

CopyTokenManager(SimpleCharStream stream)

public CopyTokenManager(SimpleCharStream stream)

Constructor.

Parameter
NameDescription
streamSimpleCharStream

CopyTokenManager(SimpleCharStream stream, int lexState)

public CopyTokenManager(SimpleCharStream stream, int lexState)

Constructor.

Parameters
NameDescription
streamSimpleCharStream
lexStateint

Fields

curChar

protected int curChar
Field Value
TypeDescription
int

debugStream

public PrintStream debugStream

Debug output.

Field Value
TypeDescription
PrintStream

input_stream

protected SimpleCharStream input_stream
Field Value
TypeDescription
SimpleCharStream

Methods

ReInit(SimpleCharStream stream)

public void ReInit(SimpleCharStream stream)

Reinitialise parser.

Parameter
NameDescription
streamSimpleCharStream

ReInit(SimpleCharStream stream, int lexState)

public void ReInit(SimpleCharStream stream, int lexState)

Reinitialise parser.

Parameters
NameDescription
streamSimpleCharStream
lexStateint

SwitchTo(int lexState)

public void SwitchTo(int lexState)

Switch to specified lex state.

Parameter
NameDescription
lexStateint

getNextToken()

public Token getNextToken()

Get the next Token.

Returns
TypeDescription
Token

jjFillToken()

protected Token jjFillToken()
Returns
TypeDescription
Token

setDebugStream(PrintStream ds)

public void setDebugStream(PrintStream ds)

Set debug output.

Parameter
NameDescription
dsPrintStream