Package org.yecht
Class BytecodeScanner
- java.lang.Object
-
- org.yecht.BytecodeScanner
-
- All Implemented Interfaces:
DefaultYAMLParser.yyInput
public class BytecodeScanner extends java.lang.Object implements DefaultYAMLParser.yyInput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BytecodeScanner.QuotedString
-
Field Summary
Fields Modifier and Type Field Description private static int
Comment
private int
currentToken
private static int
Directive
private static int
Document
private java.lang.Object
lval
private Parser
parser
static int
QUOTELEN
private static int
Scalar
private static int
Scalar2
private static int
ScalarEnd
private static int
Start
-
Constructor Summary
Constructors Constructor Description BytecodeScanner(Parser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
ADD_BYTE_LEVEL(Level lvl, int len, LevelStatus s)
boolean
advance()
move on to next token.private void
CHK_NL(int ptr)
private void
FORCE_NEXT_TOKEN(int n)
private java.lang.String
getInline()
private int
real_yylex()
int
token()
classifies current token.java.lang.Object
value()
associated with current token.private void
YYPOS(int n)
-
-
-
Field Detail
-
QUOTELEN
public static final int QUOTELEN
- See Also:
- Constant Field Values
-
parser
private Parser parser
-
lval
private java.lang.Object lval
-
currentToken
private int currentToken
-
Start
private static final int Start
- See Also:
- Constant Field Values
-
Document
private static final int Document
- See Also:
- Constant Field Values
-
Directive
private static final int Directive
- See Also:
- Constant Field Values
-
Comment
private static final int Comment
- See Also:
- Constant Field Values
-
Scalar
private static final int Scalar
- See Also:
- Constant Field Values
-
Scalar2
private static final int Scalar2
- See Also:
- Constant Field Values
-
ScalarEnd
private static final int ScalarEnd
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BytecodeScanner
public BytecodeScanner(Parser parser)
-
-
Method Detail
-
value
public java.lang.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 java.io.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:
java.io.IOException
-
YYPOS
private void YYPOS(int n)
-
FORCE_NEXT_TOKEN
private void FORCE_NEXT_TOKEN(int n)
-
CHK_NL
private void CHK_NL(int ptr)
-
ADD_BYTE_LEVEL
private boolean ADD_BYTE_LEVEL(Level lvl, int len, LevelStatus s)
-
real_yylex
private int real_yylex() throws java.io.IOException
- Throws:
java.io.IOException
-
getInline
private java.lang.String getInline() throws java.io.IOException
- Throws:
java.io.IOException
-
-