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 classBytecodeScanner.QuotedString
-
Field Summary
Fields Modifier and Type Field Description private static intCommentprivate intcurrentTokenprivate static intDirectiveprivate static intDocumentprivate java.lang.Objectlvalprivate Parserparserstatic intQUOTELENprivate static intScalarprivate static intScalar2private static intScalarEndprivate static intStart
-
Constructor Summary
Constructors Constructor Description BytecodeScanner(Parser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanADD_BYTE_LEVEL(Level lvl, int len, LevelStatus s)booleanadvance()move on to next token.private voidCHK_NL(int ptr)private voidFORCE_NEXT_TOKEN(int n)private java.lang.StringgetInline()private intreal_yylex()inttoken()classifies current token.java.lang.Objectvalue()associated with current token.private voidYYPOS(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.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
public boolean advance() throws java.io.IOExceptionDescription copied from interface:DefaultYAMLParser.yyInputmove on to next token.- Specified by:
advancein 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
-
-