public class Parser extends Object implements ParserTreeConstants, ParserConstants
| 限定符和类型 | 字段和说明 |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDEXPRESSION, JJTBLANK, JJTDIVEXPRESSION, JJTEXPRESSION, JJTINTEGERLITERAL, JJTITERABLEPARAMETER, JJTMODEXPRESSION, JJTMULEXPRESSION, jjtNodeName, JJTNONITERABLEPARAMETER, JJTROOTNODE, JJTSUBTRACTEXPRESSION, JJTTABLE, JJTTEXT, JJTVARIABLE, JJTVOIDBLANK, COLON, DEFAULT, DIVIDE, DOT, EOF, EXPR_END, EXPR_START, FIELD, G, I, IN_END, IN_START, INTEGER_LITERAL, ITERABLE_PARAMETER, LEFT_PAREN, MINUS, MODULUS, MULTIPLY, NON_ITERABLE_PARAMETER, NUMBER, PARAMETER, PLUS, RIGHT_PAREN, TABLE, TEXT, tokenImage, VARIABLE| 构造器和说明 |
|---|
Parser(InputStream stream)
Constructor with InputStream.
|
Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
Parser(ParserTokenManager tm)
Constructor with generated Token Manager.
|
Parser(Reader stream)
Constructor.
|
Parser(String s) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AdditiveExpression() |
void |
Blank() |
void |
DirectiveExpression() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
Expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
IntegerLiteral() |
void |
IterableParameter() |
void |
MultiplicativeExpression() |
void |
NonIterableParameter() |
ASTRootNode |
parse() |
void |
PrimaryExpression() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
Table() |
void |
Text() |
void |
Variable() |
protected JJTParserState jjtree
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser(String s)
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public final ASTRootNode parse() throws ParseException
ParseExceptionpublic final void Table()
throws ParseException
ParseExceptionpublic final void IterableParameter()
throws ParseException
ParseExceptionpublic final void NonIterableParameter()
throws ParseException
ParseExceptionpublic final void Text()
throws ParseException
ParseExceptionpublic final void Blank()
throws ParseException
ParseExceptionpublic final void DirectiveExpression()
throws ParseException
ParseExceptionpublic final void Expression()
throws ParseException
ParseExceptionpublic final void AdditiveExpression()
throws ParseException
ParseExceptionpublic final void MultiplicativeExpression()
throws ParseException
ParseExceptionpublic final void PrimaryExpression()
throws ParseException
ParseExceptionpublic final void Variable()
throws ParseException
ParseExceptionpublic final void IntegerLiteral()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014. All rights reserved.