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, processDoMethodInvokeException
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
public 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 ParameterTypes
public java.lang.String getName()
MetaMethod
getName
in class MetaMethod
public java.lang.String getDescriptor()
MetaMethod
getDescriptor
in class MetaMethod
public CachedClass getDeclaringClass()
MetaMethod
getDeclaringClass
in class MetaMethod
public final java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)
MetaMethod
invoke
in class MetaMethod
object
- The object this method should be invoked onarguments
- The arguments for the method if applicablepublic ParameterTypes getParamTypes()
public java.lang.Class getReturnType()
MetaMethod
getReturnType
in class MetaMethod
public int getParamsCount()
public int getModifiers()
MetaMethod
getModifiers
in class MetaMethod
public java.lang.String getSignature()
MetaMethod
getSignature
in class MetaMethod
public final java.lang.reflect.Method setAccessible()
public boolean isStatic()
MetaMethod
isStatic
in class MetaMethod
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
MetaMethod
toString
in class MetaMethod
public 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()