org.apache.commons.jexl.util.introspection
Class UberspectImpl.VelMethodImpl

java.lang.Object
  |
  +--org.apache.commons.jexl.util.introspection.UberspectImpl.VelMethodImpl
All Implemented Interfaces:
VelMethod
Enclosing class:
UberspectImpl

public class UberspectImpl.VelMethodImpl
extends Object
implements VelMethod

An implementation of VelMethod.


Field Summary
protected  Method method
          the method.
 
Constructor Summary
UberspectImpl.VelMethodImpl(Method m)
          Create a new instance.
 
Method Summary
 String getMethodName()
          Gets the method name used.
 Class getReturnType()
          returns the return type of the method invoked.
 Object invoke(Object o, Object[] params)
          invocation method - called when the method invocation should be performed and a value returned.
 boolean isCacheable()
          specifies if this VelMethod is cacheable and able to be reused for this class of object it was returned for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected Method method
the method.

Constructor Detail

UberspectImpl.VelMethodImpl

public UberspectImpl.VelMethodImpl(Method m)
Create a new instance.

Parameters:
m - the method.
Method Detail

invoke

public Object invoke(Object o,
                     Object[] params)
              throws Exception
invocation method - called when the method invocation should be performed and a value returned.

Specified by:
invoke in interface VelMethod
Parameters:
o - the object
params - method parameters.
Returns:
the result
Throws:
Exception - on any error.

isCacheable

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

Specified by:
isCacheable in interface VelMethod
Returns:
true if can be reused for this class, false if not

getMethodName

public String getMethodName()
Gets the method name used.

Specified by:
getMethodName in interface VelMethod
Returns:
method name

getReturnType

public Class getReturnType()
returns the return type of the method invoked.

Specified by:
getReturnType in interface VelMethod
Returns:
return type


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