|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Conduit of characters to a lexer.
Lexer
,
AbstractCharStream
Field Summary | |
static char |
EOS
End-of-stream value. |
Method Summary | |
void |
close()
|
char |
consume()
Consume the next character. |
String |
getDescription()
|
char |
la()
Look-ahead to the next character. |
char |
la(int k)
Look-ahead to the k th character. |
Field Detail |
public static final char EOS
Method Detail |
public String getDescription()
public char la() throws IOException
This method is equivalent to la(1)
.
IOException
- If an error occurs attempting to lookahead
a character.la(int)
public char la(int k) throws IOException
k
th character.
k
- Number of characters to look ahead.
k
th character or -1 if no
more characters available.
IOException
- If an error occurs attempting to lookahead
a character.public char consume() throws IOException
IOException
- If an error occurs attempting to consume
a character.public void close() throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |