public class TokenScanner extends java.lang.Object implements DefaultYAMLParser.yyInput
Modifier and Type | Class and Description |
---|---|
private static class |
TokenScanner.QuotedString |
Modifier and Type | Field and Description |
---|---|
private int |
currentToken |
private static boolean[] |
DIGIT_OR_SIGN |
private java.lang.Object |
lval |
private Parser |
parser |
static int |
QUOTELEN |
static java.lang.String[] |
tnames |
private static boolean[] |
YWORDC |
Constructor and Description |
---|
TokenScanner(Parser parser) |
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
move on to next token.
|
private void |
countAndAddNewlines(TokenScanner.QuotedString q) |
static DefaultYAMLParser.yyInput |
createScanner(Parser parser) |
private int |
directive() |
private int |
document(int doc_level) |
private int |
doubleQuote() |
private void |
eatComments() |
private boolean |
endspc() |
static void |
error(java.lang.String msg,
Parser parser) |
private byte |
escapeSeq(byte ch) |
private int |
GET_TRUE_YAML_INDENT() |
private int |
getAndCheckIndentLength() |
private int |
header() |
private int |
isNewline(byte[] buff,
int ptr) |
private int |
isNewline(int ptr) |
private void |
NEWLINE(int ptr) |
private int |
newlineLen(byte[] buff,
int ptr) |
private int |
newlineLen(int ptr) |
private int |
plain() |
private int |
real_yylex() |
void |
RETURN_IMPLICIT(TokenScanner.QuotedString q) |
private void |
RETURN_YAML_BLOCK(TokenScanner.QuotedString q,
int blockType,
int nlDoWhat) |
private int |
scalarBlock() |
private int |
singleQuote() |
private void |
spcOrLfStar() |
int |
token()
classifies current token.
|
private int |
transferMethod() |
java.lang.Object |
value()
associated with current token.
|
private boolean |
yblock() |
private boolean |
ywordc() |
private void |
YYPOS(int n) |
public static final int QUOTELEN
private Parser parser
private java.lang.Object lval
private int currentToken
public static final java.lang.String[] tnames
private static final boolean[] YWORDC
private static final boolean[] DIGIT_OR_SIGN
public TokenScanner(Parser parser)
public static void error(java.lang.String msg, Parser parser)
public static DefaultYAMLParser.yyInput createScanner(Parser parser)
public java.lang.Object value()
DefaultYAMLParser.yyInput
DefaultYAMLParser.yyInput.advance()
returned false.value
in interface DefaultYAMLParser.yyInput
DefaultYAMLParser.yyInput.token()
.public int token()
DefaultYAMLParser.yyInput
DefaultYAMLParser.yyInput.advance()
returned false.token
in interface DefaultYAMLParser.yyInput
public boolean advance() throws java.io.IOException
DefaultYAMLParser.yyInput
advance
in interface DefaultYAMLParser.yyInput
IOException
- on input error.private int isNewline(int ptr)
private int newlineLen(int ptr)
private int isNewline(byte[] buff, int ptr)
private int newlineLen(byte[] buff, int ptr)
private void NEWLINE(int ptr)
private void RETURN_YAML_BLOCK(TokenScanner.QuotedString q, int blockType, int nlDoWhat)
private int GET_TRUE_YAML_INDENT()
private void YYPOS(int n)
public void RETURN_IMPLICIT(TokenScanner.QuotedString q)
private int real_yylex() throws java.io.IOException
java.io.IOException
private int header() throws java.io.IOException
java.io.IOException
private void spcOrLfStar() throws java.io.IOException
java.io.IOException
private boolean ywordc() throws java.io.IOException
java.io.IOException
private boolean endspc() throws java.io.IOException
java.io.IOException
private boolean yblock() throws java.io.IOException
java.io.IOException
private int document(int doc_level) throws java.io.IOException
java.io.IOException
private int directive() throws java.io.IOException
java.io.IOException
private int getAndCheckIndentLength()
private void countAndAddNewlines(TokenScanner.QuotedString q)
private int plain() throws java.io.IOException
java.io.IOException
private int doubleQuote() throws java.io.IOException
java.io.IOException
private int singleQuote() throws java.io.IOException
java.io.IOException
private int transferMethod() throws java.io.IOException
java.io.IOException
private int scalarBlock() throws java.io.IOException
java.io.IOException
private byte escapeSeq(byte ch)
private void eatComments() throws java.io.IOException
java.io.IOException