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 ArrayTypeName
annotated(List<AnnotationSpec> annotations)
static ArrayTypeName
get(GenericArrayType type)
Returns an array type equivalent totype
.static ArrayTypeName
get(ArrayType mirror)
Returns an array type equivalent tomirror
.static ArrayTypeName
of(TypeName componentType)
Returns an array type whose elements are all instances ofcomponentType
.static ArrayTypeName
of(Type componentType)
Returns an array type whose elements are all instances ofcomponentType
.TypeName
withoutAnnotations()
-
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:
withoutAnnotations
in 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
.
-
-