public class Parser extends JexlParser implements ParserTreeConstants, ParserConstants
| Modifier and Type | Field and Description |
|---|---|
boolean |
ALLOW_REGISTERS |
Token |
jj_nt
Next token.
|
protected JJTParserState |
jjtree |
Token |
token
Current token.
|
ParserTokenManager |
token_source
Generated Token Manager.
|
frameJJTADDITIVENODE, JJTADDITIVEOPERATOR, JJTAMBIGUOUS, JJTANDNODE, JJTARRAYACCESS, JJTARRAYLITERAL, JJTASSIGNMENT, JJTBITWISEANDNODE, JJTBITWISECOMPLNODE, JJTBITWISEORNODE, JJTBITWISEXORNODE, JJTBLOCK, JJTCONSTRUCTORNODE, JJTDIVNODE, JJTEMPTYFUNCTION, JJTEQNODE, JJTERNODE, JJTFALSENODE, JJTFOREACHSTATEMENT, JJTFUNCTIONNODE, JJTGENODE, JJTGTNODE, JJTIDENTIFIER, JJTIFSTATEMENT, JJTJEXLSCRIPT, JJTLENODE, JJTLTNODE, JJTMAPENTRY, JJTMAPLITERAL, JJTMETHODNODE, JJTMODNODE, JJTMULNODE, JJTNENODE, jjtNodeName, JJTNOTNODE, JJTNRNODE, JJTNULLLITERAL, JJTNUMBERLITERAL, JJTORNODE, JJTREFERENCE, JJTREFERENCEEXPRESSION, JJTRETURNSTATEMENT, JJTSIZEFUNCTION, JJTSIZEMETHOD, JJTSTRINGLITERAL, JJTTERNARYNODE, JJTTRUENODE, JJTUNARYMINUSNODE, JJTVAR, JJTVOID, JJTWHILESTATEMENTand, AND, assign, COLON, COMMA, DEFAULT, DIGIT, div, DOT, ELSE, ELVIS, EMPTY, EOF, eq, FALSE, FLOAT_LITERAL, FOR, FOR_EACH_IN, FOREACH, ge, gt, IDENTIFIER, IF, IN, INTEGER_LITERAL, LBRACKET, LCURLY, le, LETTER, LPAREN, lt, minus, mod, mult, ne, NEW, not, NULL, or, OR, plus, QMARK, RBRACKET, RCURLY, REGISTER, REGISTERS, req, RETURN, rne, RPAREN, SEMICOL, SIZE, STRING_LITERAL, tilda, tokenImage, TRUE, VAR, WHILE, xor| 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 |
|---|---|
void |
AdditiveExpression()
Arithmetic
|
void |
AdditiveOperator() |
void |
AndExpression() |
void |
AnyMethod() |
void |
ArrayAccess() |
void |
ArrayLiteral() |
void |
Assignment() |
void |
Block() |
void |
BooleanLiteral() |
void |
ConditionalAndExpression() |
void |
ConditionalExpression()
Conditional & relational
|
void |
ConditionalOrExpression() |
void |
Constructor() |
void |
DeclareVar() |
void |
disable_tracing()
Disable tracing.
|
void |
DotReference() |
void |
EmptyFunction()
Functions & Methods
|
void |
enable_tracing()
Enable tracing.
|
void |
EqualityExpression() |
void |
ExclusiveOrExpression() |
void |
Expression()
Expression syntax
|
void |
ExpressionStatement() |
void |
FloatLiteral() |
void |
ForeachStatement() |
void |
Function() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
Identifier(boolean top)
Identifier & Literals
|
void |
IfStatement() |
void |
InclusiveOrExpression() |
void |
IntegerLiteral() |
ASTJexlScript |
JexlScript()
Statements
|
void |
Literal() |
void |
LValueVar() |
void |
MapEntry() |
void |
MapLiteral() |
void |
Method() |
void |
MultiplicativeExpression() |
void |
NullLiteral() |
ASTJexlScript |
parse(Reader reader,
JexlInfo info) |
void |
PrimaryExpression()
References
|
void |
Reference() |
void |
ReferenceExpression()
ReferenceExpression is a subclass of ArrayAccess
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
RelationalExpression() |
void |
ReturnStatement() |
void |
SizeFunction() |
void |
SizeMethod() |
void |
Statement() |
void |
StringIdentifier() |
void |
StringLiteral() |
void |
UnaryExpression() |
void |
Var() |
void |
WhileStatement() |
checkVariable, declareVariable, getFrame, Identifier, setFramebuildString, escapeString, readStringprotected JJTParserState jjtree
public boolean ALLOW_REGISTERS
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(Reader reader, JexlInfo info) throws ParseException
ParseExceptionpublic final ASTJexlScript JexlScript() 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 ForeachStatement()
throws ParseException
ParseExceptionpublic final void ReturnStatement()
throws ParseException
ParseExceptionpublic final void Expression()
throws ParseException
ParseExceptionpublic final void Assignment()
throws ParseException
ParseExceptionpublic final void Var()
throws ParseException
ParseExceptionpublic final void DeclareVar()
throws ParseException
ParseExceptionpublic final void LValueVar()
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 AdditiveOperator()
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 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 ArrayLiteral()
throws ParseException
ParseExceptionpublic final void MapLiteral()
throws ParseException
ParseExceptionpublic final void MapEntry()
throws ParseException
ParseExceptionpublic final void EmptyFunction()
throws ParseException
ParseExceptionpublic final void SizeFunction()
throws ParseException
ParseExceptionpublic final void Function()
throws ParseException
ParseExceptionpublic final void Method()
throws ParseException
ParseExceptionpublic final void AnyMethod()
throws ParseException
ParseExceptionpublic final void SizeMethod()
throws ParseException
ParseExceptionpublic final void Constructor()
throws ParseException
ParseExceptionpublic final void PrimaryExpression()
throws ParseException
ParseExceptionpublic final void ArrayAccess()
throws ParseException
ParseExceptionpublic final void DotReference()
throws ParseException
ParseExceptionpublic final void Reference()
throws ParseException
ParseExceptionpublic final void ReferenceExpression()
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 © 2020 Internet2. All rights reserved.