Package com.squareup.javapoet
Class ArrayTypeName
- java.lang.Object
-
- com.squareup.javapoet.TypeName
-
- com.squareup.javapoet.ArrayTypeName
-
public final class ArrayTypeName extends TypeName
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayTypeNameannotated(List<AnnotationSpec> annotations)static ArrayTypeNameget(GenericArrayType type)Returns an array type equivalent totype.static ArrayTypeNameget(ArrayType mirror)Returns an array type equivalent tomirror.static ArrayTypeNameof(TypeName componentType)Returns an array type whose elements are all instances ofcomponentType.static ArrayTypeNameof(Type componentType)Returns an array type whose elements are all instances ofcomponentType.TypeNamewithoutAnnotations()-
Methods inherited from class com.squareup.javapoet.TypeName
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
-
-
-
-
Field Detail
-
componentType
public final TypeName componentType
-
-
Method Detail
-
annotated
public ArrayTypeName annotated(List<AnnotationSpec> annotations)
-
withoutAnnotations
public TypeName withoutAnnotations()
- Overrides:
withoutAnnotationsin classTypeName
-
of
public static ArrayTypeName of(TypeName componentType)
Returns an array type whose elements are all instances ofcomponentType.
-
of
public static ArrayTypeName of(Type componentType)
Returns an array type whose elements are all instances ofcomponentType.
-
get
public static ArrayTypeName get(ArrayType mirror)
Returns an array type equivalent tomirror.
-
get
public static ArrayTypeName get(GenericArrayType type)
Returns an array type equivalent totype.
-
-