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
public class ASTArrayAccess extends JexlLexicalNode
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
Fields Modifier and Type Field Description private long
safe
Which children are accessed using a safe notation.private static long
serialVersionUID
-
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
-
Constructor Summary
Constructors Constructor Description ASTArrayAccess(int id)
ASTArrayAccess(Parser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSafeChild(int c)
java.lang.Object
jjtAccept(ParserVisitor visitor, java.lang.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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
safe
private long safe
Which 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 Detail
-
ASTArrayAccess
public ASTArrayAccess(int id)
-
ASTArrayAccess
public ASTArrayAccess(Parser p, int id)
-
-
Method Detail
-
isSafeChild
public boolean isSafeChild(int c)
-
jjtAccept
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
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)
-
-