public interface JavadocTokenStream
JavadocToken
s.JavadocScanner
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discards the last
marked position . |
JavadocToken |
lookahead(int offset)
Looks ahead the token after the offset.
|
void |
mark()
Marks the current stream position.
|
JavadocToken |
nextToken()
Consumes the next token and returns it.
|
JavadocToken |
peek()
Returns the next token.
|
void |
rewind()
Restores the stream position to the last
marked ,
and discards the last marked position. |
JavadocToken nextToken()
JavadocToken peek()
JavadocToken lookahead(int offset)
0
.offset
- the token offsetvoid mark()
rewind()
invocation will restore the position.void rewind()
marked
,
and discards the last marked position.IllegalStateException
- if the mark()
has not been invoked, or the mark was already discardedvoid discard()
marked position
.IllegalStateException
- if the mark()
has not been invoked, or the mark was already discardedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.