org.apache.commons.jexl.util.introspection

Interface VelPropertyGet

public interface VelPropertyGet

Interface defining a 'getter'. For uses when looking for resolution of property references $foo.bar

Since: 1.0

Version: $Id: VelPropertyGet.java 398514 2006-05-01 03:44:34Z dion $

Method Summary
StringgetMethodName()
returns the method name used to return this 'property'.
Objectinvoke(Object o)
invocation method - called when the 'get action' should be performed and a value returned.
booleanisCacheable()
specifies if this VelPropertyGet is cacheable and able to be reused for this class of object it was returned for.

Method Detail

getMethodName

public String getMethodName()
returns the method name used to return this 'property'.

Returns: the method name.

invoke

public Object invoke(Object o)
invocation method - called when the 'get action' should be performed and a value returned.

Parameters: o the object to get the property from.

Returns: the property value.

Throws: Exception on any error.

isCacheable

public boolean isCacheable()
specifies if this VelPropertyGet is cacheable and able to be reused for this class of object it was returned for.

Returns: true if can be reused for this class, false if not

Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.