org.yaml.snakeyaml.scanner
Interface Scanner

All Known Implementing Classes:
ScannerImpl

public interface Scanner

Produce Tokens.

See Also:
PyYAML for more information

Method Summary
 boolean checkToken(Class<? extends Token> choice)
          Convenience method to avoid List creation
 boolean checkToken(List<Class<? extends Token>> choices)
          Check if the next token is one of the given types.
 Token getToken()
          Return the next token.
 Token peekToken()
          Return the next token, but do not delete it from the queue.
 

Method Detail

checkToken

boolean checkToken(List<Class<? extends Token>> choices)
Check if the next token is one of the given types.


checkToken

boolean checkToken(Class<? extends Token> choice)
Convenience method to avoid List creation


peekToken

Token peekToken()
Return the next token, but do not delete it from the queue.


getToken

Token getToken()
Return the next token.



Copyright © 2008-2010. All Rights Reserved.