public interface Node extends JavaSource
| Modifier and Type | Method and Description |
|---|---|
ExpressionAccessor |
getAccessor()
Gets the compiled bytecode enhanced expression accessor for getting/setting values.
|
Object |
getValue(OgnlContext context,
Object source)
Extracts the value from the given source object that is appropriate for this node
within the given context.
|
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
Node |
jjtGetChild(int i)
This method returns a child node.
|
int |
jjtGetNumChildren()
Return the number of children the node has.
|
Node |
jjtGetParent() |
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its
parent.
|
void |
setAccessor(ExpressionAccessor accessor)
Sets a new compiled accessor for this node expression.
|
void |
setValue(OgnlContext context,
Object target,
Object value)
Sets the given value in the given target as appropriate for this node within the
given context.
|
toGetSourceString, toSetSourceStringvoid jjtOpen()
void jjtClose()
void jjtSetParent(Node n)
n - the Node to make the parent of this node.Node jjtGetParent()
void jjtAddChild(Node n, int i)
n - the Node to add as a child of this node.i - the position at which to add the child node.Node jjtGetChild(int i)
i - the position from which to get the child node.int jjtGetNumChildren()
Object getValue(OgnlContext context, Object source) throws OgnlException
context - the OgnlContext within which to perform the operation.source - the Object from which to get the value.OgnlException - if the value get fails.void setValue(OgnlContext context, Object target, Object value) throws OgnlException
context - the OgnlContext within which to perform the operation.target - the Object upon which to set the value.value - the Object representing the value to apply to the target.OgnlException - if the value set fails.ExpressionAccessor getAccessor()
void setAccessor(ExpressionAccessor accessor)
accessor - The compiled representation of this node.Copyright © 1997–2021 OpenSymphony. All rights reserved.