public class SimpleNode
extends java.lang.Object
implements org.apache.commons.jexl2.parser.Node
| Modifier and Type | Field and Description |
|---|---|
protected JexlNode[] |
children
The array of children nodes.
|
protected int |
id
The node type id.
|
protected JexlNode |
parent
The parent node.
|
protected java.lang.Object |
value
volatile value so it can be used as a last evaluation cache.
|
| Constructor and Description |
|---|
SimpleNode(int i)
Creates a SimpleNode instance.
|
SimpleNode(org.apache.commons.jexl2.parser.Parser p,
int i)
Creates a SimpleNode instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
childrenAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
Accept the visitor on all this node's children.
|
void |
dump(java.lang.String prefix) |
java.lang.Object |
jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
void |
jjtAddChild(org.apache.commons.jexl2.parser.Node n,
int i)
Adds a child node.
|
void |
jjtClose() |
JexlNode |
jjtGetChild(int i)
Gets a child of this node.
|
int |
jjtGetNumChildren()
Gets this node number of children.
|
JexlNode |
jjtGetParent()
Gets this node's parent.
|
java.lang.Object |
jjtGetValue()
Gets this node value.
|
void |
jjtOpen() |
void |
jjtSetParent(org.apache.commons.jexl2.parser.Node n)
Sets this node's parent.
|
void |
jjtSetValue(java.lang.Object value)
Sets this node value.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String prefix) |
protected JexlNode parent
protected JexlNode[] children
protected final int id
protected volatile java.lang.Object value
public SimpleNode(int i)
i - the node type identifierpublic SimpleNode(org.apache.commons.jexl2.parser.Parser p,
int i)
p - the parser instancei - the node type identifierpublic void jjtOpen()
jjtOpen in interface org.apache.commons.jexl2.parser.Nodepublic void jjtClose()
jjtClose in interface org.apache.commons.jexl2.parser.Nodepublic void jjtSetParent(org.apache.commons.jexl2.parser.Node n)
jjtSetParent in interface org.apache.commons.jexl2.parser.Noden - the parentpublic JexlNode jjtGetParent()
jjtGetParent in interface org.apache.commons.jexl2.parser.Nodepublic void jjtAddChild(org.apache.commons.jexl2.parser.Node n,
int i)
jjtAddChild in interface org.apache.commons.jexl2.parser.Noden - the child nodei - the child offsetpublic JexlNode jjtGetChild(int i)
jjtGetChild in interface org.apache.commons.jexl2.parser.Nodei - the child offsetpublic int jjtGetNumChildren()
jjtGetNumChildren in interface org.apache.commons.jexl2.parser.Nodepublic void jjtSetValue(java.lang.Object value)
value - public java.lang.Object jjtGetValue()
public java.lang.Object jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
jjtAccept in interface org.apache.commons.jexl2.parser.Nodevisitor - the visitordata - contextual datapublic java.lang.Object childrenAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
visitor - the visitordata - contextual datapublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String prefix)
public void dump(java.lang.String prefix)
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.