|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkorat.instrumentation.KoratArrayManager
public final class KoratArrayManager
Class KoratArrayManager provides some helper methods for creation and manipulation of automatically generated array classes and objects
Constructor Summary | |
---|---|
private |
KoratArrayManager()
creation of instances not allowed |
Method Summary | |
---|---|
static IKoratArray |
createArray(Class<?> koratArrayClz,
int size)
Creates instance of koratArrayClz |
static IKoratArray |
createArray(Class<?> elementType,
int size,
int iselemtype)
Creates instance of KorratArray_Type class based on given array component type. |
static Class |
createArrayClass(Class arrayClass)
Creates KorratArray_Type class based on existing array type. |
static int |
getArrayLength(Object koratArrayObj)
|
static Object[] |
getArrayValues(Object koratArray)
|
static Object[] |
getArrayValues(Object obj,
String name)
|
static Setter |
getElementSetter(Object array,
int elemIndex,
int elem_id)
Returns ElementSetter |
static Setter |
getLengthSetter(Object array,
int len_id)
Returns length setter |
static void |
initializeArray(IKoratArray array,
ITester tcListener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private KoratArrayManager()
Method Detail |
---|
public static Class createArrayClass(Class arrayClass) throws Exception
arrayClass
- -
array class for which corresponding KoratArray_Type will be
generated
Exception
public static IKoratArray createArray(Class<?> koratArrayClz, int size) throws Exception
koratArrayClz
- -
array class for which corresponding KoratArray_Type will be
generated
Exception
public static IKoratArray createArray(Class<?> elementType, int size, int iselemtype) throws Exception
elementType
- -
component class for which corresponding KoratArray_Type
will be generatedsize
- -
maximal size of KoratArray_Typeiselemtype
- -
any value
Exception
public static void initializeArray(IKoratArray array, ITester tcListener)
public static Setter getElementSetter(Object array, int elemIndex, int elem_id)
public static Setter getLengthSetter(Object array, int len_id)
public static Object[] getArrayValues(Object koratArray)
public static Object[] getArrayValues(Object obj, String name)
obj
- - object that contains field of the class namename
- - name of the array field
public static int getArrayLength(Object koratArrayObj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |