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
VelMethod
invoke
in interface VelMethod
o
- actual
- IllegalAccessException
InvocationTargetException
VelMethod.invoke(java.lang.Object, java.lang.Object[])
protected Object doInvoke(Object o, Object[] actual) throws IllegalAccessException, InvocationTargetException
o
- target objectactual
- argumentsIllegalAccessException
InvocationTargetException
public boolean isVarArg()
public boolean isCacheable()
VelMethod
isCacheable
in interface VelMethod
VelMethod.isCacheable()
public String getMethodName()
VelMethod
getMethodName
in interface VelMethod
VelMethod.getMethodName()
public Method getMethod()
VelMethod
getMethod
in interface VelMethod
VelMethod.getMethod()
public Class getReturnType()
VelMethod
getReturnType
in interface VelMethod
VelMethod.getReturnType()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.