1 21 package com.db4o.reflect; 22 23 24 29 public interface ReflectArray { 30 31 public int[] dimensions(Object arr); 32 33 public int flatten( 34 Object a_shaped, 35 int[] a_dimensions, 36 int a_currentDimension, 37 Object [] a_flat, 38 int a_flatElement); 39 40 public Object get(Object onArray, int index); 41 42 public ReflectClass getComponentType(ReflectClass a_class); 43 44 public int getLength(Object array); 45 46 public boolean isNDimensional(ReflectClass a_class); 47 48 public Object newInstance(ReflectClass componentType, int length); 49 50 public Object newInstance(ReflectClass componentType, int[] dimensions); 51 52 public void set(Object onArray, int index, Object element); 53 54 public int shape( 55 Object [] a_flat, 56 int a_flatElement, 57 Object a_shaped, 58 int[] a_dimensions, 59 int a_currentDimension); 60 } 61 62 | Popular Tags |