public class ArrayCachedClass
extends CachedClass
Provides optimized reflection caching for Java arrays. Handles type coercion including conversion of boxed arrays to primitive arrays, and GString arrays to String arrays.
| Fields inherited from class | Fields |
|---|---|
class CachedClass |
EMPTY_ARRAY, classInfo, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods |
| Constructor and description |
|---|
ArrayCachedClass(Class klazz, ClassInfo classInfo)Constructs a cached class representation for the given array class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
coerceArgument(Object argument)Coerces the given argument to the appropriate array type. |
| Methods inherited from class | Name |
|---|---|
class CachedClass |
addNewMopMethods, coerceArgument, getCachedClass, getCachedSuperClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isAssignableFrom, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString |
Coerces the given argument to the appropriate array type. Converts boxed arrays to primitive arrays if needed, and GString arrays to String arrays.
argument - the argument to coerceCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.