public class CachedMethod extends MetaMethod implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
CachedClass |
cachedClass |
isVargsMethod, nativeParamTypes, parameterTypes| Constructor and Description |
|---|
CachedMethod(CachedClass clazz,
java.lang.reflect.Method method) |
CachedMethod(java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
CallSite |
createPogoMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
java.lang.Class[] params) |
CallSite |
createPojoMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
java.lang.Class[] params) |
CallSite |
createStaticMetaMethodSite(CallSite site,
MetaClassImpl metaClass,
java.lang.Class[] params) |
boolean |
equals(java.lang.Object o) |
static CachedMethod |
find(java.lang.reflect.Method method) |
java.lang.reflect.Method |
getCachedMethod() |
CachedClass |
getDeclaringClass()
Gets the class where this method is declared
|
java.lang.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
|
java.lang.String |
getName()
Returns the name of the method represented by this class
|
int |
getParamsCount() |
ParameterTypes |
getParamTypes() |
protected java.lang.Class[] |
getPT() |
java.lang.Class |
getReturnType()
Access the return type for this method
|
java.lang.String |
getSignature()
Returns the signature of this method
|
int |
hashCode() |
java.lang.Object |
invoke(java.lang.Object object,
java.lang.Object[] arguments)
Invoke this method
|
boolean |
isStatic()
Returns whether or not this method is static.
|
java.lang.reflect.Method |
setAccessible() |
java.lang.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, java.lang.reflect.Method method)
public CachedMethod(java.lang.reflect.Method method)
public static CachedMethod find(java.lang.reflect.Method method)
protected java.lang.Class[] getPT()
getPT in class ParameterTypespublic java.lang.String getName()
MetaMethodgetName in class MetaMethodpublic java.lang.String getDescriptor()
MetaMethodgetDescriptor in class MetaMethodpublic CachedClass getDeclaringClass()
MetaMethodgetDeclaringClass in class MetaMethodpublic final java.lang.Object invoke(java.lang.Object object,
java.lang.Object[] arguments)
MetaMethodinvoke in class MetaMethodobject - The object this method should be invoked onarguments - The arguments for the method if applicablepublic ParameterTypes getParamTypes()
public java.lang.Class getReturnType()
MetaMethodgetReturnType in class MetaMethodpublic int getParamsCount()
public int getModifiers()
MetaMethodgetModifiers in class MetaMethodpublic java.lang.String getSignature()
MetaMethodgetSignature in class MetaMethodpublic final java.lang.reflect.Method setAccessible()
public boolean isStatic()
MetaMethodisStatic in class MetaMethodpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
MetaMethodtoString in class MetaMethodpublic CallSite createPogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
public CallSite createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
public java.lang.reflect.Method getCachedMethod()