public class Parser extends Object implements ParserTreeConstants, ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected org.apache.commons.jexl.parser.JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDNODE, JJTANDNODE, JJTARRAYACCESS, JJTARRAYLITERAL, JJTASSIGNMENT, JJTBITWISEANDNODE, JJTBITWISECOMPLNODE, JJTBITWISEORNODE, JJTBITWISEXORNODE, JJTBLOCK, JJTDIVNODE, JJTELVISNODE, JJTEMPTYFUNCTION, JJTEQNODE, JJTEXPRESSION, JJTEXPRESSIONEXPRESSION, JJTFALSENODE, JJTFLOATLITERAL, JJTFOREACHSTATEMENT, JJTGENODE, JJTGTNODE, JJTIDENTIFIER, JJTIFSTATEMENT, JJTINTEGERLITERAL, JJTJEXLSCRIPT, JJTLENODE, JJTLTNODE, JJTMAPENTRY, JJTMAPLITERAL, JJTMETHOD, JJTMODNODE, JJTMULNODE, JJTNENODE, jjtNodeName, JJTNOTNODE, JJTNULLLITERAL, JJTORNODE, JJTREFERENCE, JJTREFERENCEEXPRESSION, JJTSIZEFUNCTION, JJTSIZEMETHOD, JJTSTATEMENTEXPRESSION, JJTSTRINGLITERAL, JJTSUBTRACTNODE, JJTTERNARYNODE, JJTTRUENODE, JJTUNARYMINUSNODE, JJTVOID, JJTWHILESTATEMENT
COMMENT, DEFAULT, DIGIT, EOF, FLOAT_LITERAL, IDENTIFIER, INTEGER_LITERAL, LETTER, STRING_LITERAL, tokenImage
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.
|
protected org.apache.commons.jexl.parser.JJTParserState jjtree
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 void setUberspect(Uberspect uberspect)
protected Uberspect getUberspect()
public SimpleNode parse(Reader reader) throws Exception
Exception
public final SimpleNode JexlScript() throws ParseException
ParseException
public final void Block() throws ParseException
ParseException
public final void EmptyFunction() throws ParseException
ParseException
public final void SizeFunction() throws ParseException
ParseException
public final void Identifier() throws ParseException
ParseException
public final void Expression() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void ElvisExpression() throws ParseException
ParseException
public final void ConditionalOrExpression() throws ParseException
ParseException
public final void ConditionalAndExpression() throws ParseException
ParseException
public final void InclusiveOrExpression() throws ParseException
ParseException
public final void ExclusiveOrExpression() throws ParseException
ParseException
public final void AndExpression() throws ParseException
ParseException
public final void EqualityExpression() throws ParseException
ParseException
public final void RelationalExpression() throws ParseException
ParseException
public final void AdditiveExpression() throws ParseException
ParseException
public final void MultiplicativeExpression() throws ParseException
ParseException
public final void UnaryExpression() throws ParseException
ParseException
public final void PrimaryExpression() throws ParseException
ParseException
public final void Literal() throws ParseException
ParseException
public final void NullLiteral() throws ParseException
ParseException
public final void BooleanLiteral() throws ParseException
ParseException
public final void IntegerLiteral() throws ParseException
ParseException
public final void FloatLiteral() throws ParseException
ParseException
public final void StringLiteral() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void ExpressionExpression() throws ParseException
ParseException
public final void StatementExpression() throws ParseException
ParseException
public final void ReferenceExpression() throws ParseException
ParseException
public final void IfStatement() throws ParseException
ParseException
public final void WhileStatement() throws ParseException
ParseException
public final void ForeachStatement() throws ParseException
ParseException
public final void MapLiteral() throws ParseException
ParseException
public final void ArrayLiteral() throws ParseException
ParseException
public final void MapEntry() throws ParseException
ParseException
public final void Method() throws ParseException
ParseException
public final void ArrayAccess() throws ParseException
ParseException
public final void SizeMethod() throws ParseException
ParseException
public final void Reference() throws ParseException
ParseException
public final void Parameter() 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 © 2014 The Apache Software Foundation. All rights reserved.