public class JavaParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JavaParser.Nonterminals |
static class |
JavaParser.ParseException |
| Modifier and Type | Field and Description |
|---|---|
protected int |
tmHead |
protected JavaLexer |
tmLexer |
protected JavaLexer.Span |
tmNext |
protected JavaLexer.Span[] |
tmStack |
protected static String[] |
tmSymbolNames |
| Constructor and Description |
|---|
JavaParser(JavaLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRule(JavaLexer.Span tmLeft,
int ruleIndex,
int ruleLength) |
Object |
parseClassBodyDeclaration(JavaLexer lexer) |
Object |
parseCompilationUnit(JavaLexer lexer) |
Object |
parseExpression(JavaLexer lexer) |
Object |
parseGenericMethodDeclaration(JavaLexer lexer) |
Object |
parseMethodBody(JavaLexer lexer) |
Object |
parseStatement(JavaLexer lexer) |
protected void |
reduce(int rule) |
protected void |
shift() |
protected static int |
tmAction(int state,
int symbol)
-3-n Lookahead (state id)
-2 Error
-1 Shift
0..n Reduce (rule index)
|
protected static int |
tmGoto(int state,
int symbol) |
protected static final String[] tmSymbolNames
protected int tmHead
protected JavaLexer.Span[] tmStack
protected JavaLexer.Span tmNext
protected JavaLexer tmLexer
public JavaParser(JavaLexer.ErrorReporter reporter)
protected static int tmAction(int state,
int symbol)
protected static int tmGoto(int state,
int symbol)
protected void shift()
throws IOException
IOExceptionprotected void reduce(int rule)
protected void applyRule(JavaLexer.Span tmLeft, int ruleIndex, int ruleLength)
public Object parseCompilationUnit(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionpublic Object parseMethodBody(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionpublic Object parseGenericMethodDeclaration(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionpublic Object parseClassBodyDeclaration(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionpublic Object parseExpression(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionpublic Object parseStatement(JavaLexer lexer) throws IOException, JavaParser.ParseException
IOExceptionJavaParser.ParseExceptionCopyright © 2014. All rights reserved.