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.
| Modifiers | Name | Description |
|---|---|---|
static CachedClass |
OBJECT_ARRAY_CLASS |
The cached representation of Object[].class.
|
static CachedClass |
OBJECT_CLASS |
The cached representation of Object.class.
|
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static CachedClass |
getCachedClass(Class klazz)Retrieves the CachedClass for the given Java class.
|
The cached representation of Object[].class.
Used as the superclass for non-primitive array types.
The cached representation of Object.class.
Frequently accessed during type compatibility checks.
Retrieves the CachedClass for the given Java class.
Returns null if the class is null.
klazz - the Java class for which to obtain cache informationnull if klazz is null