Package org.codehaus.groovy.runtime
Class ArrayTypeUtils
java.lang.Object
org.codehaus.groovy.runtime.ArrayTypeUtils
public class ArrayTypeUtils
extends java.lang.Object
Utilities for handling array types
- 
Constructor SummaryConstructors Constructor Description ArrayTypeUtils()
- 
Method SummaryModifier and Type Method Description static intdimension(java.lang.Class clazz)Calculate the dimension of arraystatic java.lang.ClasselementType(java.lang.Class clazz)Get the type of array elementsstatic java.lang.ClasselementType(java.lang.Class clazz, int dim)Get the type of array elements by the dimensionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ArrayTypeUtilspublic ArrayTypeUtils()
 
- 
- 
Method Details- 
dimensionpublic static int dimension(java.lang.Class clazz)Calculate the dimension of array- Parameters:
- clazz- the type of array
- Returns:
- the dimension of array
 
- 
elementTypepublic static java.lang.Class elementType(java.lang.Class clazz)Get the type of array elements- Parameters:
- clazz- the type of array
- Returns:
- the type of elements
 
- 
elementTypepublic static java.lang.Class elementType(java.lang.Class clazz, int dim)Get the type of array elements by the dimension- Parameters:
- clazz- the type of array
- dim- the target dimension
- Returns:
- the result array
 
 
-