Package org.apache.commons.jexl3.parser
Class ASTArrayAccess
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.JexlLexicalNode
org.apache.commons.jexl3.parser.ASTArrayAccess
- All Implemented Interfaces:
JexlParser.LexicalUnit
,Node
Array access supporting (optional) safe notation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode
JexlNode.Constant<T>, JexlNode.Funcall, JexlNode.Info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
Which children are accessed using a safe notation.private static final long
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSafeChild
(int c) jjtAccept
(ParserVisitor visitor, Object data) Accepts the visitor.(package private) void
setSafe
(long s) Methods inherited from class org.apache.commons.jexl3.parser.JexlLexicalNode
declareSymbol, getLexicalScope, getSymbolCount, hasSymbol, isConstant, jjtClose, setConstant
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getColumn, getLine, isConstant, isConstant, isGlobalVar, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jjtSetFirstToken, jjtSetLastToken
Methods inherited from class org.apache.commons.jexl3.parser.SimpleNode
childrenAccept, dump, dumpOut, getId, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetChildren, jjtSetParent, jjtSetValue, toString, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
safe
private long safeWhich children are accessed using a safe notation. Note that this does not really work after the 64th child. However, an expression like 'a?[b]?[c]?...?[b0]' with 64 terms is very unlikely to occur in real life and a bad idea anyhow.
-
-
Constructor Details
-
ASTArrayAccess
public ASTArrayAccess(int id) -
ASTArrayAccess
-
-
Method Details
-
isSafeChild
public boolean isSafeChild(int c) -
jjtAccept
Description copied from class:SimpleNode
Accepts the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-
setSafe
void setSafe(long s)
-