public class CachedMethod extends MetaMethod implements Comparable
| Modifier and Type | Field and Description |
|---|---|
CachedClass |
cachedClass |
isVargsMethod, nativeParamTypes, parameterTypes| Constructor and Description |
|---|
CachedMethod(CachedClass clazz,
Method method) |
CachedMethod(Method method) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
CallSite |
createPogoMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
Class[] params) |
CallSite |
createPojoMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
Class[] params) |
CallSite |
createStaticMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
Class[] params) |
boolean |
equals(Object o) |
static CachedMethod |
find(Method method) |
Method |
getCachedMethod() |
CachedClass |
getDeclaringClass()
Gets the class where this method is declared
|
String |
getDescriptor()
Return a descriptor of this method based on the return type and parameters of this method.
|
int |
getModifiers()
Returns the modifiers for this method
|
String |
getName()
Returns the name of the method represented by this class
|
int |
getParamsCount() |
ParameterTypes |
getParamTypes() |
protected Class[] |
getPT() |
Class |
getReturnType()
Access the return type for this method
|
String |
getSignature()
Returns the signature of this method
|
int |
hashCode() |
Object |
invoke(Object object,
Object[] arguments)
Invoke this method
|
boolean |
isStatic()
Returns whether or not this method is static.
|
Method |
setAccessible() |
String |
toString()
Returns a string representation of this method
|
checkParameters, clone, doMethodInvoke, equal, equal, getMopName, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, processDoMethodInvokeExceptioncoerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypespublic final CachedClass cachedClass
public CachedMethod(CachedClass clazz, Method method)
public CachedMethod(Method method)
public static CachedMethod find(Method method)
protected Class[] getPT()
getPT in class ParameterTypespublic String getName()
MetaMethodgetName in class MetaMethodpublic String getDescriptor()
MetaMethodgetDescriptor in class MetaMethodpublic CachedClass getDeclaringClass()
MetaMethodgetDeclaringClass in class MetaMethodpublic final Object invoke(Object object, Object[] arguments)
MetaMethodinvoke in class MetaMethodobject - The object this method should be invoked onarguments - The arguments for the method if applicablepublic ParameterTypes getParamTypes()
public Class getReturnType()
MetaMethodgetReturnType in class MetaMethodpublic int getParamsCount()
public int getModifiers()
MetaMethodgetModifiers in class MetaMethodpublic String getSignature()
MetaMethodgetSignature in class MetaMethodpublic final Method setAccessible()
public boolean isStatic()
MetaMethodisStatic in class MetaMethodpublic int compareTo(Object o)
compareTo in interface Comparablepublic String toString()
MetaMethodtoString in class MetaMethodpublic CallSite createPogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)
public CallSite createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)
public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)
public Method getCachedMethod()