yyang-talend / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

Add support for exploring arrays in reflection #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am doing reflection over generic types and I would like to explore arrays 
also.
Example:
int[] a = {1,2,3,4};
Class<?> clazz = a.getClass();
ClassType<?> atype = TypeOracle.Instance.getClassType(clazz);
ArrayType aatype = atype .isArray();

but then there's nothing more than I can do really.

It would be nice to have functionalities like in java.lang.reflect.Array as 
getLength() or get().

Original issue reported on code.google.com by dariosalvi78 on 19 Jun 2014 at 3:57