CachedClass (Groovy 5.1.0)

Package: org.codehaus.groovy.reflection

## [Java] Class CachedClass

- org.codehaus.groovy.reflection.CachedClass

-     public class CachedClass
      extends Object

- - ### Nested Class Summary

    Nested classes
    Modifiers | Name | Description
    --- | --- | ---
    `static class` | `CachedClass.CachedMethodComparatorByName` |
    `static class` | `CachedClass.CachedMethodComparatorWithString` |

  - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static CachedClass[]` | `EMPTY_ARRAY` |
    `ClassInfo` | `classInfo` |
    `boolean` | `isArray` |
    `boolean` | `isInterface` |
    `boolean` | `isNumber` |
    `boolean` | `isPrimitive` |
    `int` | `modifiers` |
    `CachedMethod[]` | `mopMethods` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CachedClass(Class<?> klazz, ClassInfo classInfo)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `addNewMopMethods(List<MetaMethod> arr)`
    `` | `public Object` | `coerceArgument(Object argument)`
    `` | `public CachedClass` | `getCachedClass()` compatibility method
    `` | `public CachedClass` | `getCachedSuperClass()`
    `` | `public CallSiteClassLoader` | `getCallSiteLoader()`
    `` | `public CachedConstructor[]` | `getConstructors()`
    `` | `public Set<CachedClass>` | `getDeclaredInterfaces()`
    `` | `public CachedField[]` | `getFields()`
    `` | `public Collection<ClassInfo>` | `getHierarchy()`
    `` | `public Set<CachedClass>` | `getInterfaces()`
    `` | `public CachedMethod[]` | `getMethods()`
    `` | `public int` | `getModifiers()`
    `` | `public String` | `getName()`
    `` | `public MetaMethod[]` | `getNewMetaMethods()`
    `` | `public int` | `getSuperClassDistance()`
    `` | `public final Class<?>` | `getTheClass()`
    `` | `public String` | `getTypeDescription()`
    `` | `public int` | `hashCode()`
    `` | `public CachedField[]` | `initValue()`
    `` | `public CachedConstructor[]` | `initValue()`
    `` | `public CachedMethod[]` | `initValue()`
    `` | `public CallSiteClassLoader` | `initValue()`
    `` | `public Collection<ClassInfo>` | `initValue()`
    `` | `public Set<CachedClass>` | `initValue()`
    `` | `public Set<CachedClass>` | `initValue()`
    `` | `public CachedClass` | `initValue()`
    `` | `public boolean` | `isAssignableFrom(Class<?> argument)`
    `` | `public boolean` | `isDirectlyAssignable(Object argument)`
    `` | `public boolean` | `isInterface()`
    `` | `public boolean` | `isPrimitive()`
    `` | `public boolean` | `isVoid()`
    `` | `public CachedMethod` | `searchMethods(String name, CachedClass[] parameterTypes)`
    `` | `public void` | `setNewMopMethods(List<MetaMethod> arr)`
    `` | `public String` | `toString()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### public static final CachedClass[] EMPTY_ARRAY

    - #### public ClassInfo classInfo

    - #### public final boolean isArray

    - #### public final boolean isInterface

    - #### public final boolean isNumber

    - #### public final boolean isPrimitive

    - #### public final int modifiers

    - #### public CachedMethod[] mopMethods

  - ### Constructor Detail

    - #### public CachedClass(Class<?> klazz, ClassInfo classInfo)

  - ### Method Detail

    - #### public void addNewMopMethods(List<MetaMethod> arr)

    - #### public Object coerceArgument(Object argument)

    - #### public CachedClass getCachedClass()

      compatibility method

      Returns:
        this

    - #### public CachedClass getCachedSuperClass()

    - #### public CallSiteClassLoader getCallSiteLoader()

    - #### public CachedConstructor[] getConstructors()

    - #### public Set<CachedClass> getDeclaredInterfaces()

    - #### public CachedField[] getFields()

    - #### public Collection<ClassInfo> getHierarchy()

    - #### public Set<CachedClass> getInterfaces()

    - #### public CachedMethod[] getMethods()

    - #### public int getModifiers()

    - #### public String getName()

    - #### public MetaMethod[] getNewMetaMethods()

    - #### public int getSuperClassDistance()

    - #### public final Class<?> getTheClass()

    - #### public String getTypeDescription()

    - #### @Override
      public int hashCode()

    - #### @Override
      public CachedField[] initValue()

    - #### @Override
      public CachedConstructor[] initValue()

    - #### @Override
      public CachedMethod[] initValue()

    - #### @Override
      public CallSiteClassLoader initValue()

    - #### @Override
      public Collection<ClassInfo> initValue()

    - #### @Override
      public Set<CachedClass> initValue()

    - #### @Override
      public Set<CachedClass> initValue()

    - #### @Override
      public CachedClass initValue()

    - #### public boolean isAssignableFrom(Class<?> argument)

    - #### public boolean isDirectlyAssignable(Object argument)

    - #### public boolean isInterface()

    - #### public boolean isPrimitive()

    - #### public boolean isVoid()

    - #### public CachedMethod searchMethods(String name, CachedClass[] parameterTypes)

    - #### public void setNewMopMethods(List<MetaMethod> arr)

    - #### @Override
      public String toString()