Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ognl
Class ASTProperty  view ASTProperty download ASTProperty.java

java.lang.Object
  extended byognl.SimpleNode
      extended byognl.ASTProperty
All Implemented Interfaces:
Node, java.io.Serializable

class ASTProperty
extends SimpleNode


Field Summary
private  boolean indexedAccess
           
 
Fields inherited from class ognl.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTProperty(int id)
           
ASTProperty(OgnlParser p, int id)
           
 
Method Summary
 int getIndexedPropertyType(OgnlContext context, java.lang.Object source)
          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.
 java.lang.Object getProperty(OgnlContext context, java.lang.Object source)
           
protected  java.lang.Object getValueBody(OgnlContext context, java.lang.Object source)
          Subclasses implement this method to do the actual work of extracting the appropriate value from the source object.
 boolean isIndexedAccess()
          Returns true iff this property is itself an index reference.
 boolean isNodeSimpleProperty(OgnlContext context)
           
 void setIndexedAccess(boolean value)
           
protected  void setValueBody(OgnlContext context, java.lang.Object target, java.lang.Object value)
          Subclasses implement this method to do the actual work of setting the appropriate value in the target object.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexedAccess

private boolean indexedAccess
Constructor Detail

ASTProperty

public ASTProperty(int id)

ASTProperty

public ASTProperty(OgnlParser p,
                   int id)
Method Detail

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