public class Method extends MethodConstructor
| Modifier and Type | Field and Description |
|---|---|
Throwable |
dontUseInvocationError |
_method_, _vclass_, declaringClass, methodName, methodSpecs, modifiers, reflect, wrapperTypeFORCE_ACCESS_PUBLIC| Modifier and Type | Method and Description |
|---|---|
Wrapper |
invoke(Object target,
Wrapper[] parameters,
Wrapper result)
Invoke the method on the specified target object.
|
boolean |
returnsValue()
Returns true if the method is not of type void.
|
String |
toString()
Return a String representation of this object.
|
getDeclaringClass, getExceptionTypes, getModifiers, getName, getParameters, getParameterTypes, getReturnType, getSpecs, getTypepublic Throwable dontUseInvocationError
public Wrapper invoke(Object target, Wrapper[] parameters, Wrapper result) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
target - The object to invoke the method on, or null in the case of static methods.parameters - an array of parameters which must be of the correct length.results - an optional Wrapper provided to retrieve the results. If it is null then a
new one will be created and returned.IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionpublic boolean returnsValue()
public String toString()
ObjecttoString in class MethodConstructor