public class Parser extends Object implements ParserConstants
Modifier and Type | Field and Description |
---|---|
FunctionResolver |
functionResolver |
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
AND, BLOCK_COMMENT, DECIMAL_LITERAL, DEFAULT, EOF, EXPONENT, FALSE, FLOATING_POINT_LITERAL, HEX_LITERAL, ID, LINE_COMMENT, NULL, OCTAL_LITERAL, OR, STRING_LITERAL, tokenImage, TRUE, VARIABLE, ZERO
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Expression |
addExpression() |
Expression |
andExpression() |
Expression |
comparisonExpression() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
Expression |
equalityExpression() |
Expression |
functionExpr() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
ConstantExpression |
literal() |
Expression |
multExpr() |
Expression |
orExpression() |
Expression |
parse() |
Expression |
primaryExpr() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
String |
stringLiteral() |
Expression |
unaryExpr() |
VariableExpression |
variable() |
public FunctionResolver functionResolver
public ParserTokenManager token_source
public Token token
public Token jj_nt
public Parser(InputStream stream)
public Parser(InputStream stream, String encoding)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public final Expression parse() throws ParseException
ParseException
public final Expression orExpression() throws ParseException
ParseException
public final Expression andExpression() throws ParseException
ParseException
public final Expression equalityExpression() throws ParseException
ParseException
public final Expression comparisonExpression() throws ParseException
ParseException
public final Expression addExpression() throws ParseException
ParseException
public final Expression multExpr() throws ParseException
ParseException
public final Expression unaryExpr() throws ParseException
ParseException
public final Expression primaryExpr() throws ParseException
ParseException
public final Expression functionExpr() throws ParseException
ParseException
public final ConstantExpression literal() throws ParseException
ParseException
public final String stringLiteral() throws ParseException
ParseException
public final VariableExpression variable() throws ParseException
ParseException
public 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 © 2020 JBoss by Red Hat. All rights reserved.