public final class ArrayTypeName extends TypeName
| Modifier and Type | Field and Description |
|---|---|
TypeName |
componentType |
| Modifier and Type | Method and Description |
|---|---|
ArrayTypeName |
annotated(List<AnnotationSpec> annotations) |
static ArrayTypeName |
get(ArrayType mirror)
Returns an array type equivalent to
mirror. |
static ArrayTypeName |
get(GenericArrayType type)
Returns an array type equivalent to
type. |
static ArrayTypeName |
of(Type componentType)
Returns an array type whose elements are all instances of
componentType. |
static ArrayTypeName |
of(TypeName componentType)
Returns an array type whose elements are all instances of
componentType. |
TypeName |
withoutAnnotations() |
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unboxpublic final TypeName componentType
public ArrayTypeName annotated(List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations in class TypeNamepublic static ArrayTypeName of(TypeName componentType)
componentType.public static ArrayTypeName of(Type componentType)
componentType.public static ArrayTypeName get(ArrayType mirror)
mirror.public static ArrayTypeName get(GenericArrayType type)
type.Copyright © 2016 Square, Inc.. All Rights Reserved.