public final class Parser extends JexlParser implements ParserTreeConstants, ParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
protected JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDNODE, JJTAMBIGUOUS, JJTANDNODE, JJTARGUMENTS, JJTARRAYACCESS, JJTARRAYLITERAL, JJTASSIGNMENT, JJTBITWISEANDNODE, JJTBITWISECOMPLNODE, JJTBITWISEORNODE, JJTBITWISEXORNODE, JJTBLOCK, JJTBREAK, JJTCONSTRUCTORNODE, JJTCONTINUE, JJTDIVNODE, JJTEMPTYFUNCTION, JJTEMPTYMETHOD, JJTEQNODE, JJTERNODE, JJTEWNODE, JJTEXTENDEDLITERAL, JJTFALSENODE, JJTFOREACHSTATEMENT, JJTFUNCTIONNODE, JJTGENODE, JJTGTNODE, JJTIDENTIFIER, JJTIDENTIFIERACCESS, JJTIFSTATEMENT, JJTJEXLLAMBDA, JJTJEXLSCRIPT, JJTJXLTLITERAL, JJTLENODE, JJTLTNODE, JJTMAPENTRY, JJTMAPLITERAL, JJTMETHODNODE, JJTMODNODE, JJTMULNODE, JJTNENODE, JJTNEWNODE, jjtNodeName, JJTNOTNODE, JJTNRNODE, JJTNSWNODE, JJTNULLLITERAL, JJTNUMBERLITERAL, JJTORNODE, JJTRANGENODE, JJTREFERENCE, JJTREFERENCEEXPRESSION, JJTRETURNSTATEMENT, JJTSETADDNODE, JJTSETANDNODE, JJTSETDIVNODE, JJTSETLITERAL, JJTSETMODNODE, JJTSETMULTNODE, JJTSETORNODE, JJTSETSUBNODE, JJTSETXORNODE, JJTSIZEFUNCTION, JJTSIZEMETHOD, JJTSTRINGLITERAL, JJTSUBNODE, JJTSWNODE, JJTTERNARYNODE, JJTTRUENODE, JJTUNARYMINUSNODE, JJTVAR, JJTVOID, JJTWHILESTATEMENTand, AND, and_assign, assign, BREAK, COLON, COMMA, CONTINUE, DEFAULT, DIGIT, div, div_assign, DOT, DOT_ID, DOT_IDENTIFIER, eeq, ELIPSIS, ELSE, ELVIS, EMPTY, ene, EOF, eq, FALSE, FLOAT_LITERAL, FOR, FUNCTION, ge, gt, IDENTIFIER, IF, INTEGER_LITERAL, JXLT_LITERAL, LAMBDA, LBRACKET, LCURLY, le, LETTER, LPAREN, lt, minus, minus_assign, mod, mod_assign, mult, mult_assign, NAN_LITERAL, ne, NEW, not, NULL, or, OR, or_assign, plus, plus_assign, PRAGMA, QMARK, range, RBRACKET, RCURLY, REGISTER, REGISTERS, req, RETURN, rne, RPAREN, SEMICOL, seq, SIZE, sne, STRING_LITERAL, tilda, tokenImage, TRUE, VAR, WHILE, xor, xor_assign| 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.
|
allowRegisters, checkVariable, declareParameter, declarePragma, declareVariable, getFrame, Identifier, popFrame, pushFrame, setFrame, throwParsingExceptionbuildString, escapeString, readStringprotected 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 ASTJexlScript parse(JexlInfo info, String jexlSrc, Scope scope, boolean registers, boolean expr)
public final ASTJexlScript JexlScript(Scope frame) throws ParseException
ParseExceptionpublic final ASTJexlScript JexlExpression(Scope frame) throws ParseException
ParseExceptionpublic final void Statement()
throws ParseException
ParseExceptionpublic final void Block()
throws ParseException
ParseExceptionpublic final void ExpressionStatement()
throws ParseException
ParseExceptionpublic final void IfStatement()
throws ParseException
ParseExceptionpublic final void WhileStatement()
throws ParseException
ParseExceptionpublic final void ReturnStatement()
throws ParseException
ParseExceptionpublic final void Continue()
throws ParseException
ParseExceptionpublic final void Break()
throws ParseException
ParseExceptionpublic final void ForeachStatement()
throws ParseException
ParseExceptionpublic final void ForEachVar()
throws ParseException
ParseExceptionpublic final void Var()
throws ParseException
ParseExceptionpublic final void DeclareVar()
throws ParseException
ParseExceptionpublic final void Pragma()
throws ParseException
ParseExceptionpublic final void pragmaKey(LinkedList<String> lstr) throws ParseException
ParseExceptionpublic final Object pragmaValue() throws ParseException
ParseExceptionpublic final void Expression()
throws ParseException
ParseExceptionpublic final void AssignmentExpression()
throws ParseException
ParseExceptionpublic final void ConditionalExpression()
throws ParseException
ParseExceptionpublic final void ConditionalOrExpression()
throws ParseException
ParseExceptionpublic final void ConditionalAndExpression()
throws ParseException
ParseExceptionpublic final void InclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void ExclusiveOrExpression()
throws ParseException
ParseExceptionpublic final void AndExpression()
throws ParseException
ParseExceptionpublic final void EqualityExpression()
throws ParseException
ParseExceptionpublic final void RelationalExpression()
throws ParseException
ParseExceptionpublic final void AdditiveExpression()
throws ParseException
ParseExceptionpublic final void MultiplicativeExpression()
throws ParseException
ParseExceptionpublic final void UnaryExpression()
throws ParseException
ParseExceptionpublic final void Identifier(boolean top)
throws ParseException
Identifier in class JexlParsertop - whether the identifier is beginning an l/r valueParseException - subclasses may throw thispublic final void StringIdentifier()
throws ParseException
ParseExceptionpublic final void Literal()
throws ParseException
ParseExceptionpublic final void NaNLiteral()
throws ParseException
ParseExceptionpublic final void NullLiteral()
throws ParseException
ParseExceptionpublic final void BooleanLiteral()
throws ParseException
ParseExceptionpublic final void IntegerLiteral()
throws ParseException
ParseExceptionpublic final void FloatLiteral()
throws ParseException
ParseExceptionpublic final void StringLiteral()
throws ParseException
ParseExceptionpublic final void JxltLiteral()
throws ParseException
ParseExceptionpublic final void ExtendedLiteral()
throws ParseException
ParseExceptionpublic final void ArrayLiteral()
throws ParseException
ParseExceptionpublic final void MapLiteral()
throws ParseException
ParseExceptionpublic final void MapEntry()
throws ParseException
ParseExceptionpublic final void SetLiteral()
throws ParseException
ParseExceptionpublic final void EmptyMethod()
throws ParseException
ParseExceptionpublic final void SizeMethod()
throws ParseException
ParseExceptionpublic final void Arguments()
throws ParseException
ParseExceptionpublic final void FunctionCallLookahead()
throws ParseException
ParseExceptionpublic final void FunctionCall()
throws ParseException
ParseExceptionpublic final void Constructor()
throws ParseException
ParseExceptionpublic final void Parameter()
throws ParseException
ParseExceptionpublic final void Parameters()
throws ParseException
ParseExceptionpublic final void LambdaLookahead()
throws ParseException
ParseExceptionpublic final void Lambda()
throws ParseException
ParseExceptionpublic final void IdentifierAccess()
throws ParseException
ParseExceptionpublic final void ArrayAccess()
throws ParseException
ParseExceptionpublic final void MemberAccess()
throws ParseException
ParseExceptionpublic final void ReferenceExpression()
throws ParseException
ParseExceptionpublic final void PrimaryExpression()
throws ParseException
ParseExceptionpublic final void MethodCall()
throws ParseException
ParseExceptionpublic final void MemberExpression()
throws ParseException
ParseExceptionpublic final void ValueExpression()
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)
getToken in class JexlParserpublic ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.