Package com.db4o.reflect.core
Class AbstractReflectArray
- java.lang.Object
-
- com.db4o.reflect.core.AbstractReflectArray
-
- All Implemented Interfaces:
ReflectArray
- Direct Known Subclasses:
JdkArray
public abstract class AbstractReflectArray extends java.lang.Object implements ReflectArray
-
-
Field Summary
Fields Modifier and Type Field Description protected Reflector
_reflector
-
Constructor Summary
Constructors Constructor Description AbstractReflectArray(Reflector reflector)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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 a_class)
int
getLength(java.lang.Object array)
boolean
isNDimensional(ReflectClass a_class)
abstract java.lang.Object
newInstance(ReflectClass componentType, int length)
abstract java.lang.Object
newInstance(ReflectClass componentType, int[] dimensions)
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.reflect.ReflectArray
analyze, newInstance
-
-
-
-
Field Detail
-
_reflector
protected final Reflector _reflector
-
-
Constructor Detail
-
AbstractReflectArray
public AbstractReflectArray(Reflector reflector)
-
-
Method Detail
-
newInstance
public abstract java.lang.Object newInstance(ReflectClass componentType, int[] dimensions)
- Specified by:
newInstance
in interfaceReflectArray
-
newInstance
public abstract java.lang.Object newInstance(ReflectClass componentType, int length)
- Specified by:
newInstance
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 a_class)
- 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
-
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
-
-