org.apache.velocity.util.introspection
public static class UberspectImpl.VelMethodImpl extends java.lang.Object implements VelMethod
Constructor and Description |
---|
UberspectImpl.VelMethodImpl(java.lang.reflect.Method m) |
UberspectImpl.VelMethodImpl(java.lang.reflect.Method method,
boolean wrapArray) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doInvoke(java.lang.Object o,
java.lang.Object[] actual)
Offers an extension point for subclasses (in alternate Uberspects)
to alter the invocation after any array wrapping or varargs handling
has already been completed.
|
java.lang.String |
getMethodName()
returns the method name used
|
java.lang.Class |
getReturnType()
returns the return type of the method invoked
|
java.lang.Object |
invoke(java.lang.Object o,
java.lang.Object[] actual)
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
|
boolean |
isVarArg() |
public UberspectImpl.VelMethodImpl(java.lang.reflect.Method m)
m
- public UberspectImpl.VelMethodImpl(java.lang.reflect.Method method, boolean wrapArray)
public java.lang.Object invoke(java.lang.Object o, java.lang.Object[] actual) throws java.lang.Exception
VelMethod
invoke
in interface VelMethod
java.lang.Exception
VelMethod.invoke(java.lang.Object, java.lang.Object[])
protected java.lang.Object doInvoke(java.lang.Object o, java.lang.Object[] actual) throws java.lang.Exception
java.lang.Exception
public boolean isVarArg()
public boolean isCacheable()
VelMethod
isCacheable
in interface VelMethod
VelMethod.isCacheable()
public java.lang.String getMethodName()
VelMethod
getMethodName
in interface VelMethod
VelMethod.getMethodName()
public java.lang.Class getReturnType()
VelMethod
getReturnType
in interface VelMethod
VelMethod.getReturnType()
Copyright © 2000-2014. All Rights Reserved.