Package: org.codehaus.groovy.reflection

## [Java] Class ReflectionCache

- org.codehaus.groovy.reflection.ReflectionCache

-     public class ReflectionCache
      extends Object

  Central registry for obtaining cached class information.

  Provides factory methods for retrieving CachedClass instances for a given Java class. Maintains static references to commonly-used classes for efficient access.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static CachedClass` | `OBJECT_ARRAY_CLASS` | The cached representation of `Object[].class`.
    `static CachedClass` | `OBJECT_CLASS` | The cached representation of `Object.class`.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static CachedClass` | `getCachedClass(Class klazz)` Retrieves the `CachedClass` for the given Java class.

  - ### 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 OBJECT_ARRAY_CLASS

      The cached representation of `Object[].class`. Used as the superclass for non-primitive array types.

    - #### public static final CachedClass OBJECT_CLASS

      The cached representation of `Object.class`. Frequently accessed during type compatibility checks.

  - ### Method Detail

    - #### public static CachedClass getCachedClass(Class klazz)

      Retrieves the `CachedClass` for the given Java class. Returns `null` if the class is `null`.

      Parameters:
        `klazz` - the Java class for which to obtain cache information
      Returns:
        the cached class information, or `null` if `klazz` is `null`