org.apache.commons.jexl.parser
public class ASTReference extends SimpleNode
Version: $Id: ASTReference.java 398272 2006-04-30 03:14:01Z dion $
| Field Summary | |
|---|---|
| protected SimpleNode | root first variable in the expression. |
| Constructor Summary | |
|---|---|
| ASTReference(int id)
Create the node given an id.
| |
| ASTReference(Parser p, int id)
Create a node with the given parser and id.
| |
| Method Summary | |
|---|---|
| Object | execute(Object obj, JexlContext jc)
evaluate each piece of the reference.
e.g. foo.bar.woogie[2].name, foo is our 'root', and we need to
evaluate 'bar.woogie[2].name' relative to foo.
|
| String | getRootString()
Gets the variable name of root. |
| Object | jjtAccept(ParserVisitor visitor, Object data) |
| void | jjtClose() Store the first child as root. |
| Object | value(JexlContext jc) |
Parameters: id node id.
Parameters: p a parser. id node id.
Parameters: jc the JexlContext to evaluate against. obj not used. root.value(jc) is used instead.
Returns: the value of the array expression.
Throws: Exception on any error
root.Returns: the identifier.
Throws: Exception on any error
See Also: getIdentifierString getIdentifierString
root.