public class UberspectImpl.VelMethodImpl extends Object implements VelMethod
| Constructor and Description |
|---|
VelMethodImpl(Method m) |
VelMethodImpl(Method method,
boolean wrapArray) |
VelMethodImpl(Method method,
boolean wrapArray,
Converter[] converters) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doInvoke(Object o,
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.
|
Method |
getMethod()
returns the underlying Method
|
String |
getMethodName()
returns the method name used
|
Class |
getReturnType()
returns the return type of the method invoked
|
Object |
invoke(Object o,
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 VelMethodImpl(Method m)
m - public VelMethodImpl(Method method, boolean wrapArray)
method - wrapArray - public Object invoke(Object o, Object[] actual) throws IllegalAccessException, InvocationTargetException
VelMethodinvoke in interface VelMethodo - actual - IllegalAccessExceptionInvocationTargetExceptionVelMethod.invoke(java.lang.Object, java.lang.Object[])protected Object doInvoke(Object o, Object[] actual) throws IllegalAccessException, InvocationTargetException
o - target objectactual - argumentsIllegalAccessExceptionInvocationTargetExceptionpublic boolean isVarArg()
public boolean isCacheable()
VelMethodisCacheable in interface VelMethodVelMethod.isCacheable()public String getMethodName()
VelMethodgetMethodName in interface VelMethodVelMethod.getMethodName()public Method getMethod()
VelMethodgetMethod in interface VelMethodVelMethod.getMethod()public Class getReturnType()
VelMethodgetReturnType in interface VelMethodVelMethod.getReturnType()Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.