Class TokenScanner
java.lang.Object
org.yecht.TokenScanner
- All Implemented Interfaces:
DefaultYAMLParser.yyInput
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvance()move on to next token.static DefaultYAMLParser.yyInputcreateScanner(Parser parser) static voidvoidRETURN_IMPLICIT(org.yecht.TokenScanner.QuotedString q) inttoken()classifies current token.value()associated with current token.
-
Field Details
-
QUOTELEN
public static final int QUOTELEN- See Also:
-
tnames
-
-
Constructor Details
-
TokenScanner
-
-
Method Details
-
error
-
createScanner
-
value
Description copied from interface:DefaultYAMLParser.yyInputassociated with current token. Should not be called ifDefaultYAMLParser.yyInput.advance()returned false.- Specified by:
valuein interfaceDefaultYAMLParser.yyInput- Returns:
- value for
DefaultYAMLParser.yyInput.token().
-
token
public int token()Description copied from interface:DefaultYAMLParser.yyInputclassifies current token. Should not be called ifDefaultYAMLParser.yyInput.advance()returned false.- Specified by:
tokenin interfaceDefaultYAMLParser.yyInput- Returns:
- current %token or single character.
-
advance
Description copied from interface:DefaultYAMLParser.yyInputmove on to next token.- Specified by:
advancein interfaceDefaultYAMLParser.yyInput- Returns:
- false if positioned beyond tokens.
- Throws:
IOException
-
RETURN_IMPLICIT
public void RETURN_IMPLICIT(org.yecht.TokenScanner.QuotedString q)
-