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 int
column
protected String
filename
What file (if known) caused the problem?
int
guessing
protected InputBuffer
input
protected int
line
protected int
tokenStartColumn
protected int
tokenStartLine

Constructor Summary

LexerSharedInputState(InputStream in)
LexerSharedInputState(Reader in)
LexerSharedInputState(InputBuffer inbuf)

Method Summary

int
getColumn()
String
getFilename()
InputBuffer
getInput()
int
getLine()
int
getTokenStartColumn()
int
getTokenStartLine()
void
reset()

Field Details

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 Details

LexerSharedInputState

public LexerSharedInputState(InputStream in)

LexerSharedInputState

public LexerSharedInputState(Reader in)

LexerSharedInputState

public LexerSharedInputState(InputBuffer inbuf)

Method Details

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()