Package antlr
Class LexerSharedInputState
- java.lang.Object
-
- antlr.LexerSharedInputState
-
public class LexerSharedInputState extends java.lang.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
Fields Modifier and Type Field Description protected int
column
protected java.lang.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
Constructors Constructor Description LexerSharedInputState(InputBuffer inbuf)
LexerSharedInputState(java.io.InputStream in)
LexerSharedInputState(java.io.Reader in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
java.lang.String
getFilename()
InputBuffer
getInput()
int
getLine()
int
getTokenStartColumn()
int
getTokenStartLine()
void
reset()
-
-
-
Field Detail
-
column
protected int column
-
line
protected int line
-
tokenStartColumn
protected int tokenStartColumn
-
tokenStartLine
protected int tokenStartLine
-
input
protected InputBuffer input
-
filename
protected java.lang.String filename
What file (if known) caused the problem?
-
guessing
public int guessing
-
-
Constructor Detail
-
LexerSharedInputState
public LexerSharedInputState(InputBuffer inbuf)
-
LexerSharedInputState
public LexerSharedInputState(java.io.InputStream in)
-
LexerSharedInputState
public LexerSharedInputState(java.io.Reader in)
-
-
Method Detail
-
getFilename
public java.lang.String getFilename()
-
getInput
public InputBuffer getInput()
-
getLine
public int getLine()
-
getTokenStartColumn
public int getTokenStartColumn()
-
getTokenStartLine
public int getTokenStartLine()
-
getColumn
public int getColumn()
-
reset
public void reset()
-
-