|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Scanner
This interface represents an input stream of Tokens.
The parser and the scanner form together the 'Parse' step in the loading process (see chapter 3.1 of the YAML Specification).
Token| Method Summary | |
|---|---|
boolean |
checkToken(Token.ID... choices)
Check if the next token is one of the given types. |
Token |
getToken()
Returns the next token. |
Token |
peekToken()
Return the next token, but do not delete it from the stream. |
| Method Detail |
|---|
boolean checkToken(Token.ID... choices)
choices - token IDs.
true if the next token can be assigned to a variable
of at least one of the given types. Returns false if
no more tokens are available.
ScannerException - Thrown in case of malformed input.Token peekToken()
getToken()
ScannerException - Thrown in case of malformed input.Token getToken()
The token will be removed from the stream.
ScannerException - Thrown in case of malformed input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||