ognl
Class ASTProperty

java.lang.Object
ognl.SimpleNode
ognl.ASTProperty
- All Implemented Interfaces:
- Node, java.io.Serializable
- class ASTProperty
- extends SimpleNode
| Methods inherited from class ognl.SimpleNode |
dump, evaluateGetValueBody, evaluateSetValueBody, flattenTree, getIndexInParent, getNextSibling, getValue, isConstant, isNodeConstant, isSimpleNavigationChain, isSimpleProperty, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString |
indexedAccess
private boolean indexedAccess
ASTProperty
public ASTProperty(int id)
ASTProperty
public ASTProperty(OgnlParser p,
int id)
setIndexedAccess
public void setIndexedAccess(boolean value)
isIndexedAccess
public boolean isIndexedAccess()
- Returns true iff this property is itself an index reference.
getIndexedPropertyType
public int getIndexedPropertyType(OgnlContext context,
java.lang.Object source)
throws OgnlException
- Returns true if this property is described by an IndexedPropertyDescriptor
and that if followed by an index specifier it will call the index get/set
methods rather than go through property accessors.
getProperty
public java.lang.Object getProperty(OgnlContext context,
java.lang.Object source)
throws OgnlException
getValueBody
protected java.lang.Object getValueBody(OgnlContext context,
java.lang.Object source)
throws OgnlException
- Description copied from class:
SimpleNode
- Subclasses implement this method to do the actual work of extracting the
appropriate value from the source object.
- Specified by:
getValueBody in class SimpleNode
setValueBody
protected void setValueBody(OgnlContext context,
java.lang.Object target,
java.lang.Object value)
throws OgnlException
- Description copied from class:
SimpleNode
- 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.
- Overrides:
setValueBody in class SimpleNode
isNodeSimpleProperty
public boolean isNodeSimpleProperty(OgnlContext context)
throws OgnlException
- Overrides:
isNodeSimpleProperty in class SimpleNode
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
- Overrides:
toString in class SimpleNode