public class ReflectionMetaMethod extends MetaMethod
Modifier and Type | Field and Description |
---|---|
protected CachedMethod |
method |
EMPTY_ARRAY
isVargsMethod, nativeParamTypes, parameterTypes
Constructor and Description |
---|
ReflectionMetaMethod(CachedMethod method) |
Modifier and Type | Method and Description |
---|---|
MetaMethod |
getCachedMethod() |
CachedClass |
getDeclaringClass()
Gets the class where this method is declared
|
int |
getModifiers()
Returns the modifiers for this method
|
String |
getName()
Returns the name of the method represented by this class
|
protected Class[] |
getPT() |
Class |
getReturnType()
Access the return type for this method
|
Object |
invoke(Object object,
Object[] arguments)
Invoke this method
|
String |
toString()
Returns a string representation of this method
|
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
protected final CachedMethod method
public ReflectionMetaMethod(CachedMethod method)
public int getModifiers()
MetaMethod
getModifiers
in class MetaMethod
public String getName()
MetaMethod
getName
in class MetaMethod
public Class getReturnType()
MetaMethod
getReturnType
in class MetaMethod
public CachedClass getDeclaringClass()
MetaMethod
getDeclaringClass
in class MetaMethod
public Object invoke(Object object, Object[] arguments)
MetaMethod
invoke
in class MetaMethod
object
- The object this method should be invoked onarguments
- The arguments for the method if applicablepublic String toString()
MetaMethod
toString
in class MetaMethod
protected Class[] getPT()
getPT
in class ParameterTypes
public MetaMethod getCachedMethod()