Package org.yecht
Class TokenScanner
- java.lang.Object
-
- org.yecht.TokenScanner
-
- All Implemented Interfaces:
DefaultYAMLParser.yyInput
public class TokenScanner extends Object implements DefaultYAMLParser.yyInput
-
-
Constructor Summary
Constructors Constructor Description TokenScanner(Parser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
advance()
move on to next token.static DefaultYAMLParser.yyInput
createScanner(Parser parser)
static void
error(String msg, Parser parser)
void
RETURN_IMPLICIT(org.yecht.TokenScanner.QuotedString q)
int
token()
classifies current token.Object
value()
associated with current token.
-
-
-
Field Detail
-
QUOTELEN
public static final int QUOTELEN
- See Also:
- Constant Field Values
-
tnames
public static final String[] tnames
-
-
Constructor Detail
-
TokenScanner
public TokenScanner(Parser parser)
-
-
Method Detail
-
createScanner
public static DefaultYAMLParser.yyInput createScanner(Parser parser)
-
value
public Object value()
Description copied from interface:DefaultYAMLParser.yyInput
associated with current token. Should not be called ifDefaultYAMLParser.yyInput.advance()
returned false.- Specified by:
value
in interfaceDefaultYAMLParser.yyInput
- Returns:
- value for
DefaultYAMLParser.yyInput.token()
.
-
token
public int token()
Description copied from interface:DefaultYAMLParser.yyInput
classifies current token. Should not be called ifDefaultYAMLParser.yyInput.advance()
returned false.- Specified by:
token
in interfaceDefaultYAMLParser.yyInput
- Returns:
- current %token or single character.
-
advance
public boolean advance() throws IOException
Description copied from interface:DefaultYAMLParser.yyInput
move on to next token.- Specified by:
advance
in interfaceDefaultYAMLParser.yyInput
- Returns:
- false if positioned beyond tokens.
- Throws:
IOException
-
RETURN_IMPLICIT
public void RETURN_IMPLICIT(org.yecht.TokenScanner.QuotedString q)
-
-