Package com.db4o.reflect.generic
Class GenericArrayReflector
- java.lang.Object
-
- com.db4o.reflect.generic.GenericArrayReflector
-
- All Implemented Interfaces:
ReflectArray
public class GenericArrayReflector extends java.lang.Object implements ReflectArray
-
-
Constructor Summary
Constructors Constructor Description GenericArrayReflector(GenericReflector reflector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
analyze(java.lang.Object obj, ArrayInfo info)
int[]
dimensions(java.lang.Object arr)
int
flatten(java.lang.Object a_shaped, int[] a_dimensions, int a_currentDimension, java.lang.Object[] a_flat, int a_flatElement)
java.lang.Object
get(java.lang.Object onArray, int index)
ReflectClass
getComponentType(ReflectClass claxx)
int
getLength(java.lang.Object array)
boolean
isNDimensional(ReflectClass a_class)
java.lang.Object
newInstance(ReflectClass componentType, int length)
java.lang.Object
newInstance(ReflectClass componentType, int[] dimensions)
java.lang.Object
newInstance(ReflectClass componentType, ArrayInfo info)
void
set(java.lang.Object onArray, int index, java.lang.Object element)
int
shape(java.lang.Object[] a_flat, int a_flatElement, java.lang.Object a_shaped, int[] a_dimensions, int a_currentDimension)
-
-
-
Constructor Detail
-
GenericArrayReflector
public GenericArrayReflector(GenericReflector reflector)
-
-
Method Detail
-
analyze
public void analyze(java.lang.Object obj, ArrayInfo info)
- Specified by:
analyze
in interfaceReflectArray
-
dimensions
public int[] dimensions(java.lang.Object arr)
- Specified by:
dimensions
in interfaceReflectArray
-
flatten
public int flatten(java.lang.Object a_shaped, int[] a_dimensions, int a_currentDimension, java.lang.Object[] a_flat, int a_flatElement)
- Specified by:
flatten
in interfaceReflectArray
-
get
public java.lang.Object get(java.lang.Object onArray, int index)
- Specified by:
get
in interfaceReflectArray
-
getComponentType
public ReflectClass getComponentType(ReflectClass claxx)
- Specified by:
getComponentType
in interfaceReflectArray
-
getLength
public int getLength(java.lang.Object array)
- Specified by:
getLength
in interfaceReflectArray
-
isNDimensional
public boolean isNDimensional(ReflectClass a_class)
- Specified by:
isNDimensional
in interfaceReflectArray
-
newInstance
public java.lang.Object newInstance(ReflectClass componentType, ArrayInfo info)
- Specified by:
newInstance
in interfaceReflectArray
-
newInstance
public java.lang.Object newInstance(ReflectClass componentType, int length)
- Specified by:
newInstance
in interfaceReflectArray
-
newInstance
public java.lang.Object newInstance(ReflectClass componentType, int[] dimensions)
- Specified by:
newInstance
in interfaceReflectArray
-
set
public void set(java.lang.Object onArray, int index, java.lang.Object element)
- Specified by:
set
in interfaceReflectArray
-
shape
public int shape(java.lang.Object[] a_flat, int a_flatElement, java.lang.Object a_shaped, int[] a_dimensions, int a_currentDimension)
- Specified by:
shape
in interfaceReflectArray
-
-