|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Lexer
Common interface for ANTLR lexers.
Method Summary | |
---|---|
int |
getColumn()
Returns the current column. |
FileFormat |
getFileFormat()
Returns the file format of the input stream. |
java.lang.String |
getFilename()
Returns the name of the file. |
int |
getLine()
Returns the current line. |
Parser |
getParser()
Returns the corresponding parser for this lexer. |
void |
reset()
Resets the lexer state. |
void |
setColumn(int column)
Sets the start column of the position where parsing starts. |
void |
setFilename(java.lang.String file)
Sets the filename we parse. |
void |
setInputBuffer(java.io.Reader in)
Sets the input source to use. |
void |
setLine(int line)
Sets the line number of the position where parsing starts. |
Methods inherited from interface antlr.TokenStream |
---|
nextToken |
Method Detail |
---|
void setColumn(int column)
column
- start column.int getColumn()
FileFormat getFileFormat()
void setFilename(java.lang.String file)
file
- filename to parse.java.lang.String getFilename()
void setInputBuffer(java.io.Reader in)
in
- input source to use.void setLine(int line)
line
- line number.int getLine()
Parser getParser()
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |