antlr

Class LexerSharedInputState

public class LexerSharedInputState extends Object

This object contains the data associated with an input stream of characters. Multiple lexers share a single LexerSharedInputState to lex the same input stream.
Field Summary
protected intcolumn
protected Stringfilename
What file (if known) caused the problem?
intguessing
protected InputBufferinput
protected intline
protected inttokenStartColumn
protected inttokenStartLine
Constructor Summary
LexerSharedInputState(InputBuffer inbuf)
LexerSharedInputState(InputStream in)
LexerSharedInputState(Reader in)
Method Summary
intgetColumn()
StringgetFilename()
InputBuffergetInput()
intgetLine()
intgetTokenStartColumn()
intgetTokenStartLine()
voidreset()

Field Detail

column

protected int column

filename

protected String filename
What file (if known) caused the problem?

guessing

public int guessing

input

protected InputBuffer input

line

protected int line

tokenStartColumn

protected int tokenStartColumn

tokenStartLine

protected int tokenStartLine

Constructor Detail

LexerSharedInputState

public LexerSharedInputState(InputBuffer inbuf)

LexerSharedInputState

public LexerSharedInputState(InputStream in)

LexerSharedInputState

public LexerSharedInputState(Reader in)

Method Detail

getColumn

public int getColumn()

getFilename

public String getFilename()

getInput

public InputBuffer getInput()

getLine

public int getLine()

getTokenStartColumn

public int getTokenStartColumn()

getTokenStartLine

public int getTokenStartLine()

reset

public void reset()