public class ArrayTypes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
arrayFromComponent(java.lang.Class<?> component,
int arrayDimensions)
Obtain a reference to an array
Class derived from a given component
type, with the given number of dimensions. |
static <T> java.lang.Class<T[]> |
arrayFromComponent(java.lang.Class<T> component)
Obtain a reference to an array
Class derived from a given component
type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.GenericArrayType component)
Obtain a reference to a
GenericArrayType derived from a given
component type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.GenericArrayType component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType derived from a given
component type, with the given number of dimensions. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(InferenceVariable component)
Obtain a reference to a
GenericArrayType derived from a given
component type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(InferenceVariable component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType derived from a given
component type, with the given number of dimensions. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(IntersectionType component)
Obtain a reference to a
GenericArrayType derived from a given
component type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(IntersectionType component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType derived from a given
component type, with the given number of dimensions. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.ParameterizedType component)
Obtain a reference to a
GenericArrayType derived from a given
component type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.ParameterizedType component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType derived from a given
component type, with the given number of dimensions. |
static java.lang.reflect.Type |
arrayFromComponent(java.lang.reflect.Type component)
Obtain a reference to a
GenericArrayType or array Class
derived from a given component type. |
static java.lang.reflect.Type |
arrayFromComponent(java.lang.reflect.Type component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType or array Class
derived from a given component type, with the given number of dimensions. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.TypeVariable<?> component)
Obtain a reference to a
GenericArrayType derived from a given
component type. |
static java.lang.reflect.GenericArrayType |
arrayFromComponent(java.lang.reflect.TypeVariable<?> component,
int arrayDimensions)
Obtain a reference to a
GenericArrayType derived from a given
component type, with the given number of dimensions. |
public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.GenericArrayType component)
GenericArrayType
derived from a given
component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.GenericArrayType component, int arrayDimensions)
GenericArrayType
derived from a given
component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.ParameterizedType component)
GenericArrayType
derived from a given
component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.ParameterizedType component, int arrayDimensions)
GenericArrayType
derived from a given
component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.TypeVariable<?> component)
GenericArrayType
derived from a given
component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.GenericArrayType arrayFromComponent(java.lang.reflect.TypeVariable<?> component, int arrayDimensions)
GenericArrayType
derived from a given
component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static java.lang.reflect.GenericArrayType arrayFromComponent(InferenceVariable component)
GenericArrayType
derived from a given
component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.GenericArrayType arrayFromComponent(InferenceVariable component, int arrayDimensions)
GenericArrayType
derived from a given
component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static java.lang.reflect.GenericArrayType arrayFromComponent(IntersectionType component)
GenericArrayType
derived from a given
component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.GenericArrayType arrayFromComponent(IntersectionType component, int arrayDimensions)
GenericArrayType
derived from a given
component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static <T> java.lang.Class<T[]> arrayFromComponent(java.lang.Class<T> component)
Class
derived from a given component
type.T
- The type of the component of the array.component
- The component type of the generic array type to be created.public static java.lang.Class<?> arrayFromComponent(java.lang.Class<?> component, int arrayDimensions)
Class
derived from a given component
type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.public static java.lang.reflect.Type arrayFromComponent(java.lang.reflect.Type component)
GenericArrayType
or array Class
derived from a given component type.component
- The component type of the generic array type to be created.public static java.lang.reflect.Type arrayFromComponent(java.lang.reflect.Type component, int arrayDimensions)
GenericArrayType
or array Class
derived from a given component type, with the given number of dimensions.component
- The component type of the generic array type to be created.arrayDimensions
- The number of dimensions to create over the given component.