Package org.codehaus.groovy.reflection
Class CachedMethod
- java.lang.Object
-
- org.codehaus.groovy.reflection.ParameterTypes
-
- groovy.lang.MetaMethod
-
- org.codehaus.groovy.reflection.CachedMethod
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Comparable
public class CachedMethod extends MetaMethod implements java.lang.Comparable
- Author:
- Alex.Tkachman
-
-
Field Summary
Fields Modifier and Type Field Description CachedClasscachedClass-
Fields inherited from class org.codehaus.groovy.reflection.ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes
-
-
Constructor Summary
Constructors Constructor Description CachedMethod(java.lang.reflect.Method method)CachedMethod(CachedClass clazz, java.lang.reflect.Method method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)CallSitecreatePogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)CallSitecreatePojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)CallSitecreateStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)booleanequals(java.lang.Object o)static CachedMethodfind(java.lang.reflect.Method method)java.lang.reflect.MethodgetCachedMethod()CachedClassgetDeclaringClass()java.lang.StringgetDescriptor()intgetModifiers()java.lang.StringgetName()intgetParamsCount()ParameterTypesgetParamTypes()protected java.lang.Class[]getPT()java.lang.ClassgetReturnType()java.lang.StringgetSignature()inthashCode()booleanhasPogoCallSiteConstructor()booleanhasPojoCallSiteConstructor()booleanhasStaticCallSiteConstructor()java.lang.Objectinvoke(java.lang.Object object, java.lang.Object[] arguments)booleanisStatic()java.lang.reflect.MethodsetAccessible()java.lang.StringtoString()-
Methods inherited from class groovy.lang.MetaMethod
checkParameters, clone, doMethodInvoke, equal, equal, getMopName, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, processDoMethodInvokeException
-
Methods inherited from class org.codehaus.groovy.reflection.ParameterTypes
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, setParametersTypes
-
-
-
-
Field Detail
-
cachedClass
public final CachedClass cachedClass
-
-
Constructor Detail
-
CachedMethod
public CachedMethod(CachedClass clazz, java.lang.reflect.Method method)
-
CachedMethod
public CachedMethod(java.lang.reflect.Method method)
-
-
Method Detail
-
find
public static CachedMethod find(java.lang.reflect.Method method)
-
getPT
protected java.lang.Class[] getPT()
- Overrides:
getPTin classParameterTypes
-
getName
public java.lang.String getName()
- Specified by:
getNamein classMetaMethod
-
getDescriptor
public java.lang.String getDescriptor()
- Overrides:
getDescriptorin classMetaMethod
-
getDeclaringClass
public CachedClass getDeclaringClass()
- Specified by:
getDeclaringClassin classMetaMethod
-
invoke
public final java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)- Specified by:
invokein classMetaMethod
-
getParamTypes
public ParameterTypes getParamTypes()
-
getReturnType
public java.lang.Class getReturnType()
- Specified by:
getReturnTypein classMetaMethod
-
getParamsCount
public int getParamsCount()
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin classMetaMethod
-
getSignature
public java.lang.String getSignature()
- Overrides:
getSignaturein classMetaMethod
-
setAccessible
public final java.lang.reflect.Method setAccessible()
-
isStatic
public boolean isStatic()
- Overrides:
isStaticin classMetaMethod
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMetaMethod
-
createPogoMetaMethodSite
public CallSite createPogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
-
createPojoMetaMethodSite
public CallSite createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
-
createStaticMetaMethodSite
public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, java.lang.Class[] params)
-
hasPogoCallSiteConstructor
public boolean hasPogoCallSiteConstructor()
-
hasPojoCallSiteConstructor
public boolean hasPojoCallSiteConstructor()
-
hasStaticCallSiteConstructor
public boolean hasStaticCallSiteConstructor()
-
getCachedMethod
public java.lang.reflect.Method getCachedMethod()
-
-