public class ArrayTypeUtils extends Object
Utilities for handling array types
Type Params | Return Type | Name and description |
---|---|---|
|
public static int |
dimension(Class clazz) Calculate the dimension of array |
|
public static int |
dimension(ClassNode clazz) Calculate the dimension of array |
|
public static Class |
elementType(Class clazz) Get the type of array elements |
|
public static ClassNode |
elementType(ClassNode clazz) Get the type of array elements |
|
public static Class |
elementType(Class clazz, int dim) Get the type of array elements by the dimension |
Calculate the dimension of array
clazz
- the type of arrayCalculate the dimension of array
clazz
- the type of arrayGet the type of array elements
clazz
- the type of arrayGet the type of array elements
clazz
- the type of array