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:
Cloneable
,Comparable
- Author:
- Alex.Tkachman
-
Field Summary
FieldsFields inherited from class org.codehaus.groovy.reflection.ParameterTypes
isVargsMethod, nativeParamTypes, parameterTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
createPogoMetaMethodSite
(CallSite site, MetaClassImpl metaClass, Class[] params) createPojoMetaMethodSite
(CallSite site, MetaClassImpl metaClass, Class[] params) createStaticMetaMethodSite
(CallSite site, MetaClassImpl metaClass, Class[] params) boolean
static CachedMethod
int
getName()
int
protected Class[]
getPT()
int
hashCode()
boolean
boolean
boolean
final Object
boolean
isStatic()
final Method
toString()
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 Details
-
cachedClass
-
-
Constructor Details
-
CachedMethod
-
CachedMethod
-
-
Method Details
-
find
-
getPT
- Overrides:
getPT
in classParameterTypes
-
getName
- Specified by:
getName
in classMetaMethod
-
getDescriptor
- Overrides:
getDescriptor
in classMetaMethod
-
getDeclaringClass
- Specified by:
getDeclaringClass
in classMetaMethod
-
invoke
- Specified by:
invoke
in classMetaMethod
-
getParamTypes
-
getReturnType
- Specified by:
getReturnType
in classMetaMethod
-
getParamsCount
public int getParamsCount() -
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMetaMethod
-
getSignature
- Overrides:
getSignature
in classMetaMethod
-
setAccessible
-
isStatic
public boolean isStatic()- Overrides:
isStatic
in classMetaMethod
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classMetaMethod
-
createPogoMetaMethodSite
-
createPojoMetaMethodSite
-
createStaticMetaMethodSite
-
hasPogoCallSiteConstructor
public boolean hasPogoCallSiteConstructor() -
hasPojoCallSiteConstructor
public boolean hasPojoCallSiteConstructor() -
hasStaticCallSiteConstructor
public boolean hasStaticCallSiteConstructor() -
getCachedMethod
-