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
- 
Field SummaryFieldsFields inherited from class org.codehaus.groovy.reflection.ParameterTypesisVargsMethod, nativeParamTypes, parameterTypes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAccessLegally(Class<?> callerClass) intcreatePogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params) booleanstatic CachedMethod<T extends Annotation>
 TgetAnnotation(Class<T> annotationClass) Gets the class where this method is declaredReturn a descriptor of this method based on the return type and parameters of this method.intReturns the modifiers for this methodgetName()Returns the name of the method represented by this classintClass[]getPT()Access the return type for this methodReturns the signature of this methodinthashCode()final ObjectInvoke this methodbooleanisStatic()Returns whether this method is static.booleanfinal MethodvoidsetTransformedMethod(CachedMethod transformedMethod) toString()Returns a string representation of this methodMethods inherited from class groovy.lang.MetaMethodcheckParameters, clone, doMethodInvoke, equal, equal, getMopName, isAbstract, isCacheable, isDefault, isMethod, isPrivate, isProtected, isPublic, isSame, processDoMethodInvokeExceptionMethods inherited from class org.codehaus.groovy.reflection.ParameterTypescoerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
- 
Field Details- 
EMPTY_ARRAY
- 
cachedClass
 
- 
- 
Constructor Details- 
CachedMethod
- 
CachedMethod
 
- 
- 
Method Details- 
find
- 
compareTo- Specified by:
- compareToin interface- Comparable
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toStringDescription copied from class:MetaMethodReturns a string representation of this method- Overrides:
- toStringin class- MetaMethod
 
- 
canAccessLegally
- 
getAnnotation
- 
getCachedMethod
- 
getDeclaringClassDescription copied from class:MetaMethodGets the class where this method is declared- Specified by:
- getDeclaringClassin class- MetaMethod
- Returns:
- class of this method
 
- 
getDescriptorDescription copied from class:MetaMethodReturn a descriptor of this method based on the return type and parameters of this method.- Overrides:
- getDescriptorin class- MetaMethod
 
- 
getModifierspublic int getModifiers()Description copied from class:MetaMethodReturns the modifiers for this method- Specified by:
- getModifiersin class- MetaMethod
- Returns:
- modifiers as an int.
 
- 
getNameDescription copied from class:MetaMethodReturns the name of the method represented by this class- Specified by:
- getNamein class- MetaMethod
- Returns:
- name of this method
 
- 
getParamsCountpublic int getParamsCount()
- 
getParamTypes
- 
getPT- Overrides:
- getPTin class- ParameterTypes
 
- 
getReturnTypeDescription copied from class:MetaMethodAccess the return type for this method- Specified by:
- getReturnTypein class- MetaMethod
- Returns:
- the return type of this method
 
- 
getSignatureDescription copied from class:MetaMethodReturns the signature of this method- Overrides:
- getSignaturein class- MetaMethod
- Returns:
- The signature of this method
 
- 
getTransformedMethod
- 
setTransformedMethod
- 
isStaticpublic boolean isStatic()Description copied from class:MetaMethodReturns whether this method is static.- Overrides:
- isStaticin class- MetaMethod
- Returns:
- true if this method is static
 
- 
isSyntheticpublic boolean isSynthetic()
- 
createPogoMetaMethodSite
- 
createPojoMetaMethodSite
- 
createStaticMetaMethodSite
- 
invokeDescription copied from class:MetaMethodInvoke this method- Specified by:
- invokein class- MetaMethod
- Parameters:
- object- The object this method should be invoked on
- arguments- The arguments for the method if applicable
- Returns:
- The return value of the invocation
 
- 
setAccessible
 
-