public final class ArrayType<T> extends ReferenceType<T>
For example:
ArrayType< String[] > arrayString = new ArrayType<>( ClassType.of(String.class) ); ArrayType< int[] > array_int = new ArrayType<>( PrimitiveType.of(int.class) );
Note that `T` represents the array type, not the component type (which can be primitive).
Constructor and Description |
---|
ArrayType(JavaType<?> componentType)
Create an array type for the component type.
|
Instance Methods | |
---|---|
JavaType<?> |
getComponentType()
Get the component type of the array.
|
String |
toString(boolean full)
A textual description of the array type.
|
convertFrom, equals, hashCode, toString
public ArrayType(JavaType<?> componentType)
For example:
ArrayType< String[] > arrayString = new ArrayType<>( ClassType.of(String.class) ); ArrayType< int[] > array_int = new ArrayType<>( PrimitiveType.of(int.class) );
public JavaType<?> getComponentType()