| java.lang.Object ognl.SimpleNode
All known Subclasses: ognl.ASTKeyValue, ognl.ASTMethod, ognl.ASTSequence, ognl.ASTChain, ognl.ASTSelectLast, ognl.ASTSelectFirst, ognl.ASTProject, ognl.ASTMap, ognl.ASTAssign, ognl.ASTInstanceof, ognl.ASTNotIn, ognl.ASTConst, ognl.ASTEval, ognl.ASTVarRef, ognl.ASTStaticMethod, ognl.ExpressionNode, ognl.ASTCtor, ognl.ASTStaticField, ognl.ASTProperty, ognl.ASTIn, ognl.ASTList, ognl.ASTSelect,
SimpleNode | abstract public class SimpleNode implements Node,Serializable(Code) | | author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) |
Method Summary | |
public void | dump(PrintWriter writer, String prefix) | protected Object | evaluateGetValueBody(OgnlContext context, Object source) | protected void | evaluateSetValueBody(OgnlContext context, Object target, Object value) | protected void | flattenTree() This method may be called from subclasses' jjtClose methods. | public int | getIndexInParent() | public Node | getNextSibling() | final public Object | getValue(OgnlContext context, Object source) | abstract protected Object | getValueBody(OgnlContext context, Object source) Subclasses implement this method to do the actual work of extracting the
appropriate value from the source object. | public boolean | isConstant(OgnlContext context) | public boolean | isNodeConstant(OgnlContext context) Returns true iff this node is constant without respect to the children. | public boolean | isNodeSimpleProperty(OgnlContext context) | public boolean | isSimpleNavigationChain(OgnlContext context) | public boolean | isSimpleProperty(OgnlContext context) | public void | jjtAddChild(Node n, int i) | public void | jjtClose() | public Node | jjtGetChild(int i) | public int | jjtGetNumChildren() | public Node | jjtGetParent() | public void | jjtOpen() | public void | jjtSetParent(Node n) | final public void | setValue(OgnlContext context, Object target, Object value) | protected void | setValueBody(OgnlContext context, Object target, Object value) Subclasses implement this method to do the actual work of setting the
appropriate value in the target object. | public String | toString() | public String | toString(String prefix) |
SimpleNode | public SimpleNode(int i)(Code) | | |
flattenTree | protected void flattenTree()(Code) | | This method may be called from subclasses' jjtClose methods. It flattens the
tree under this node by eliminating any children that are of the same class as
this node and copying their children to this node.
|
getIndexInParent | public int getIndexInParent()(Code) | | |
getValueBody | abstract protected Object getValueBody(OgnlContext context, Object source) throws OgnlException(Code) | | Subclasses implement this method to do the actual work of extracting the
appropriate value from the source object.
|
isNodeConstant | public boolean isNodeConstant(OgnlContext context) throws OgnlException(Code) | | Returns true iff this node is constant without respect to the children.
|
jjtAddChild | public void jjtAddChild(Node n, int i)(Code) | | |
jjtClose | public void jjtClose()(Code) | | |
jjtGetNumChildren | public int jjtGetNumChildren()(Code) | | |
jjtOpen | public void jjtOpen()(Code) | | |
jjtSetParent | public void jjtSetParent(Node n)(Code) | | |
setValueBody | protected void setValueBody(OgnlContext context, Object target, Object value) throws OgnlException(Code) | | Subclasses implement this method to do the actual work of setting the
appropriate value in the target object. The default implementation
throws an InappropriateExpressionException , meaning that it
cannot be a set expression.
|
|
|