public final class ArrayTypeName extends TypeName
Modifier and Type | Field | Description |
---|---|---|
TypeName |
componentType |
Modifier and Type | Method | Description |
---|---|---|
ArrayTypeName |
annotated(List<AnnotationSpec> annotations) |
|
static ArrayTypeName |
get(GenericArrayType type) |
Returns an array type equivalent to
type . |
static ArrayTypeName |
get(ArrayType mirror) |
Returns an array type equivalent to
mirror . |
static ArrayTypeName |
of(TypeName componentType) |
Returns an array type whose elements are all instances of
componentType . |
static ArrayTypeName |
of(Type componentType) |
Returns an array type whose elements are all instances of
componentType . |
TypeName |
withoutAnnotations() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
public final TypeName componentType
public ArrayTypeName annotated(List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations
in class TypeName
public 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 © 2019 Square, Inc.. All rights reserved.