CachedMethod (groovy 2.4.6 API)
Date: 2016-02-18

Package: org.codehaus.groovy.reflection

## [Java] Class CachedMethod

- org.codehaus.groovy.reflection.CachedMethod

- All Implemented Interfaces and Traits:
    Comparable

      public class CachedMethod
      extends MetaMethod

  Authors:
    Alex.Tkachman

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `CachedClass` | `cachedClass` |

  - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class ParameterTypes` | `isVargsMethod, nativeParamTypes, parameterTypes`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CachedMethod (CachedClass clazz, Method method)`
    `CachedMethod (Method method)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `int` | `compareTo(Object o)`
    `CallSite` | `createPogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)`
    `CallSite` | `createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)`
    `CallSite` | `createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)`
    `boolean` | `equals(Object o)`
    `static CachedMethod` | `find(Method method)`
    `Method` | `getCachedMethod()`
    `CachedClass` | `getDeclaringClass()`
    `String` | `getDescriptor()`
    `int` | `getModifiers()`
    `String` | `getName()`
    `protected Class[]` | `getPT()`
    `ParameterTypes` | `getParamTypes()`
    `int` | `getParamsCount()`
    `Class` | `getReturnType()`
    `String` | `getSignature()`
    `int` | `hashCode()`
    `Object` | `invoke(Object object, Object[] arguments)`
    `boolean` | `isStatic()`
    `Method` | `setAccessible()`
    `String` | `toString()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class MetaMethod` | `checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException, toString`
    `class ParameterTypes` | `coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### public final CachedClass cachedClass

  - ### Constructor Detail

    - #### public CachedMethod(CachedClass clazz, Method method)

    - #### public CachedMethod(Method method)

  - ### Method Detail

    - #### public int compareTo(Object o)

    - #### public CallSite createPogoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)

    - #### public CallSite createPojoMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)

    - #### public CallSite createStaticMetaMethodSite(CallSite site, MetaClassImpl metaClass, Class[] params)

    - #### public boolean equals(Object o)

    - #### public static CachedMethod find(Method method)

    - #### public Method getCachedMethod()

    - #### public CachedClass getDeclaringClass()

    - #### public String getDescriptor()

    - #### public int getModifiers()

    - #### public String getName()

    - #### protected Class[] getPT()

    - #### public ParameterTypes getParamTypes()

    - #### public int getParamsCount()

    - #### public Class getReturnType()

    - #### public String getSignature()

    - #### public int hashCode()

    - #### public final Object invoke(Object object, Object[] arguments)

    - #### public boolean isStatic()

    - #### public final Method setAccessible()

    - #### public String toString()