com.thoughtworks.qdox.parser.impl
Class Parser
java.lang.Object
com.thoughtworks.qdox.parser.impl.Parser
- public class Parser
- extends java.lang.Object
Encapsulates yacc() parser functionality in a Java
class for quick code development
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
yydebug
boolean yydebug
yynerrs
int yynerrs
yyerrflag
int yyerrflag
yychar
int yychar
YYSTACKSIZE
static final int YYSTACKSIZE
- See Also:
- Constant Field Values
statestk
int[] statestk
stateptr
int stateptr
stateptrmax
int stateptrmax
statemax
int statemax
yytext
java.lang.String yytext
yyval
Parser.Value yyval
yylval
Parser.Value yylval
valstk
Parser.Value[] valstk
valptr
int valptr
SEMI
public static final short SEMI
- See Also:
- Constant Field Values
DOT
public static final short DOT
- See Also:
- Constant Field Values
COMMA
public static final short COMMA
- See Also:
- Constant Field Values
STAR
public static final short STAR
- See Also:
- Constant Field Values
EQUALS
public static final short EQUALS
- See Also:
- Constant Field Values
PACKAGE
public static final short PACKAGE
- See Also:
- Constant Field Values
IMPORT
public static final short IMPORT
- See Also:
- Constant Field Values
PUBLIC
public static final short PUBLIC
- See Also:
- Constant Field Values
PROTECTED
public static final short PROTECTED
- See Also:
- Constant Field Values
PRIVATE
public static final short PRIVATE
- See Also:
- Constant Field Values
STATIC
public static final short STATIC
- See Also:
- Constant Field Values
FINAL
public static final short FINAL
- See Also:
- Constant Field Values
ABSTRACT
public static final short ABSTRACT
- See Also:
- Constant Field Values
NATIVE
public static final short NATIVE
- See Also:
- Constant Field Values
STRICTFP
public static final short STRICTFP
- See Also:
- Constant Field Values
SYNCHRONIZED
public static final short SYNCHRONIZED
- See Also:
- Constant Field Values
TRANSIENT
public static final short TRANSIENT
- See Also:
- Constant Field Values
VOLATILE
public static final short VOLATILE
- See Also:
- Constant Field Values
CLASS
public static final short CLASS
- See Also:
- Constant Field Values
INTERFACE
public static final short INTERFACE
- See Also:
- Constant Field Values
THROWS
public static final short THROWS
- See Also:
- Constant Field Values
EXTENDS
public static final short EXTENDS
- See Also:
- Constant Field Values
IMPLEMENTS
public static final short IMPLEMENTS
- See Also:
- Constant Field Values
BRACEOPEN
public static final short BRACEOPEN
- See Also:
- Constant Field Values
BRACECLOSE
public static final short BRACECLOSE
- See Also:
- Constant Field Values
SQUAREOPEN
public static final short SQUAREOPEN
- See Also:
- Constant Field Values
SQUARECLOSE
public static final short SQUARECLOSE
- See Also:
- Constant Field Values
PARENOPEN
public static final short PARENOPEN
- See Also:
- Constant Field Values
PARENCLOSE
public static final short PARENCLOSE
- See Also:
- Constant Field Values
JAVADOCSTART
public static final short JAVADOCSTART
- See Also:
- Constant Field Values
JAVADOCEND
public static final short JAVADOCEND
- See Also:
- Constant Field Values
CODEBLOCK
public static final short CODEBLOCK
- See Also:
- Constant Field Values
STRING
public static final short STRING
- See Also:
- Constant Field Values
IDENTIFIER
public static final short IDENTIFIER
- See Also:
- Constant Field Values
JAVADOCTAG
public static final short JAVADOCTAG
- See Also:
- Constant Field Values
JAVADOCTOKEN
public static final short JAVADOCTOKEN
- See Also:
- Constant Field Values
YYERRCODE
public static final short YYERRCODE
- See Also:
- Constant Field Values
yylhs
static final short[] yylhs
yylen
static final short[] yylen
yydefred
static final short[] yydefred
yydgoto
static final short[] yydgoto
yysindex
static final short[] yysindex
yyrindex
static final short[] yyrindex
yygindex
static final short[] yygindex
YYTABLESIZE
static final int YYTABLESIZE
- See Also:
- Constant Field Values
yytable
static final short[] yytable
yycheck
static final short[] yycheck
YYFINAL
static final short YYFINAL
- See Also:
- Constant Field Values
YYMAXTOKEN
static final short YYMAXTOKEN
- See Also:
- Constant Field Values
yyname
static final java.lang.String[] yyname
yyrule
static final java.lang.String[] yyrule
lexer
private Lexer lexer
builder
private Builder builder
textBuffer
private java.lang.StringBuffer textBuffer
cls
private ClassDef cls
mth
private MethodDef mth
param
private FieldDef param
modifiers
private java.util.Set modifiers
fieldType
private TypeDef fieldType
tagLine
private int tagLine
yyn
int yyn
yym
int yym
yystate
int yystate
yys
java.lang.String yys
Parser
public Parser(Lexer lexer,
Builder builder)
debug
void debug(java.lang.String msg)
state_push
void state_push(int state)
state_pop
int state_pop()
state_drop
void state_drop(int cnt)
state_peek
int state_peek(int relative)
init_stacks
boolean init_stacks()
dump_stacks
void dump_stacks(int count)
val_init
void val_init()
val_push
void val_push(Parser.Value val)
val_pop
Parser.Value val_pop()
val_drop
void val_drop(int cnt)
val_peek
Parser.Value val_peek(int relative)
buffer
private java.lang.String buffer()
parse
public boolean parse()
- Parse file. Return true if successful.
yylex
private int yylex()
yyerror
private void yyerror(java.lang.String msg)
makeField
private void makeField(TypeDef field)
yylexdebug
void yylexdebug(int state,
int ch)
yyparse
int yyparse()