Package org.codehaus.groovy.runtime
Class ArrayTypeUtils
- java.lang.Object
- 
- org.codehaus.groovy.runtime.ArrayTypeUtils
 
- 
 public class ArrayTypeUtils extends Object Utilities for handling array types
- 
- 
Constructor SummaryConstructors Constructor Description ArrayTypeUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intdimension(Class clazz)Calculate the dimension of arraystatic ClasselementType(Class clazz)Get the type of array elementsstatic ClasselementType(Class clazz, int dim)Get the type of array elements by the dimension
 
- 
- 
- 
Method Detail- 
dimensionpublic static int dimension(Class clazz) Calculate the dimension of array- Parameters:
- clazz- the type of array
- Returns:
- the dimension of array
 
 - 
elementTypepublic static Class elementType(Class clazz) Get the type of array elements- Parameters:
- clazz- the type of array
- Returns:
- the type of elements
 
 
- 
 
-