Class Parser
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.StringParser
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlParser
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.Parser
- All Implemented Interfaces:
ParserConstants
,ParserTreeConstants
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Next token.protected JJTParserState
Current token.Generated Token Manager.Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlParser
frame
Fields inherited from interface edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.ParserConstants
and, 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
Fields inherited from interface edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.ParserTreeConstants
JJTADDITIVENODE, 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, JJTWHILESTATEMENT
-
Constructor Summary
ConstructorDescriptionConstructor with generated Token Manager.Parser
(InputStream stream) Constructor with InputStream.Parser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Arithmeticfinal void
final void
final void
final void
final void
final void
final void
Block()
final void
final void
final void
Conditional & relationalfinal void
final void
final void
final void
Disable tracing.final void
final void
Functions & Methodsfinal void
Enable tracing.final void
final void
final void
Expression syntaxfinal void
final void
final void
final void
Function()
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
Identifier
(boolean top) Identifier & Literalsfinal void
final void
final void
final ASTJexlScript
Statementsfinal void
Literal()
final void
final void
MapEntry()
final void
final void
Method()
final void
final void
final void
Referencesfinal void
final void
ReferenceExpression is a subclass of ArrayAccessvoid
Reinitialise.void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.final void
final void
final void
final void
final void
final void
final void
final void
final void
Var()
final void
Methods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlParser
checkVariable, declareVariable, getFrame, Identifier, setFrame
Methods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.StringParser
buildString, escapeString, readString
-
Field Details
-
jjtree
-
ALLOW_REGISTERS
public boolean ALLOW_REGISTERS -
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Parser
Constructor with InputStream. -
Parser
Constructor with InputStream and supplied encoding -
Parser
Constructor. -
Parser
Constructor with generated Token Manager.
-
-
Method Details
-
parse
- Throws:
ParseException
-
JexlScript
Statements- Throws:
ParseException
-
Statement
- Throws:
ParseException
-
Block
- Throws:
ParseException
-
ExpressionStatement
- Throws:
ParseException
-
IfStatement
- Throws:
ParseException
-
WhileStatement
- Throws:
ParseException
-
ForeachStatement
- Throws:
ParseException
-
ReturnStatement
- Throws:
ParseException
-
Expression
Expression syntax- Throws:
ParseException
-
Assignment
- Throws:
ParseException
-
Var
- Throws:
ParseException
-
DeclareVar
- Throws:
ParseException
-
LValueVar
- Throws:
ParseException
-
ConditionalExpression
Conditional & relational- Throws:
ParseException
-
ConditionalOrExpression
- Throws:
ParseException
-
ConditionalAndExpression
- Throws:
ParseException
-
InclusiveOrExpression
- Throws:
ParseException
-
ExclusiveOrExpression
- Throws:
ParseException
-
AndExpression
- Throws:
ParseException
-
EqualityExpression
- Throws:
ParseException
-
RelationalExpression
- Throws:
ParseException
-
AdditiveExpression
Arithmetic- Throws:
ParseException
-
AdditiveOperator
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
Identifier
Identifier & Literals- Overrides:
Identifier
in classJexlParser
- Parameters:
top
- whether the identifier is beginning an l/r value- Throws:
ParseException
- subclasses may throw this
-
StringIdentifier
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
NullLiteral
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
IntegerLiteral
- Throws:
ParseException
-
FloatLiteral
- Throws:
ParseException
-
StringLiteral
- Throws:
ParseException
-
ArrayLiteral
- Throws:
ParseException
-
MapLiteral
- Throws:
ParseException
-
MapEntry
- Throws:
ParseException
-
EmptyFunction
Functions & Methods- Throws:
ParseException
-
SizeFunction
- Throws:
ParseException
-
Function
- Throws:
ParseException
-
Method
- Throws:
ParseException
-
AnyMethod
- Throws:
ParseException
-
SizeMethod
- Throws:
ParseException
-
Constructor
- Throws:
ParseException
-
PrimaryExpression
References- Throws:
ParseException
-
ArrayAccess
- Throws:
ParseException
-
DotReference
- Throws:
ParseException
-
Reference
- Throws:
ParseException
-
ReferenceExpression
ReferenceExpression is a subclass of ArrayAccess- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token.- Overrides:
getToken
in classJexlParser
-
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-