|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--parser.ExpressionParser.LexicalAnalyzer | +--parser.ExpressionParser.Default.LexicalAnalyzer
Field Summary | |
protected int |
column
The zero-based column number the next token begins at. |
protected int |
index
The zero-based index the next token begins at. |
protected int |
length
The length of the text . |
protected int |
line
The zero-based line number the next token begins at. |
protected String |
sourceName
The sourceName given to the constructor. |
protected int |
tabStop
The tabStop given to the constructor. |
protected CharSequence |
text
The text given to the constructor. |
Constructor Summary | |
ExpressionParser.Default.LexicalAnalyzer(String sourceName,
CharSequence text,
int tabStop)
Constructs a lexical analyzer with a given table. |
Method Summary | |
ExpressionParser.Token |
next()
Returns the next token in the sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final String sourceName
protected final CharSequence text
protected final int length
text
.
protected final int tabStop
protected int index
protected int line
protected int column
Constructor Detail |
public ExpressionParser.Default.LexicalAnalyzer(String sourceName, CharSequence text, int tabStop)
sourceName
- the name of the text.text
- the text to parse.tabStop
- the count of columns the tab character expands to.Method Detail |
public ExpressionParser.Token next() throws ExpressionParser.ParseException
ExpressionParser.LexicalAnalyzer
ExpressionParser.EOF_TOKEN
, but the image or the index etc. are not specified (may be unsupported).
next
in class ExpressionParser.LexicalAnalyzer
ExpressionParser.ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |