|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.ablaf.internal.lexer.AbstractLexerSource
An abstract implementation of an ILexerSource.
| Constructor Summary | |
protected |
AbstractLexerSource(java.lang.String sourceName)
|
| Method Summary | |
char |
getLastRead()
|
int |
getLine()
|
int |
getOffset()
Return the count of read characters. |
java.lang.String |
getSourceName()
Return the name of the source. |
protected abstract char |
internalRead()
|
char |
read()
Returns the next char. |
void |
unread()
Unread the last read char. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractLexerSource(java.lang.String sourceName)
| Method Detail |
protected abstract char internalRead()
public char read()
ILexerSource
read in interface ILexerSourceILexerSource.read()public void unread()
ILexerSource
unread in interface ILexerSourceILexerSource.unread()public int getOffset()
ILexerSource
getOffset in interface ILexerSourceILexerSource.getOffset()public java.lang.String getSourceName()
ILexerSource
getSourceName in interface ILexerSourceILexerSource.getSourceName()public char getLastRead()
getLastRead in interface ILexerSourcepublic int getLine()
getLine in interface ILexerSource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||