public final class ArrayTypeName extends TypeName
Modifier and Type | Field and Description |
---|---|
TypeName |
componentType |
Modifier and Type | Method and Description |
---|---|
ArrayTypeName |
annotated(java.util.List<AnnotationSpec> annotations) |
static ArrayTypeName |
get(javax.lang.model.type.ArrayType mirror)
Returns an array type equivalent to
mirror . |
static ArrayTypeName |
get(java.lang.reflect.GenericArrayType type)
Returns an array type equivalent to
type . |
static ArrayTypeName |
of(java.lang.reflect.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, unbox
public final TypeName componentType
public ArrayTypeName annotated(java.util.List<AnnotationSpec> annotations)
public TypeName withoutAnnotations()
withoutAnnotations
in class TypeName
public static ArrayTypeName of(TypeName componentType)
componentType
.public static ArrayTypeName of(java.lang.reflect.Type componentType)
componentType
.public static ArrayTypeName get(javax.lang.model.type.ArrayType mirror)
mirror
.public static ArrayTypeName get(java.lang.reflect.GenericArrayType type)
type
.Copyright © 2020 Square, Inc.. All Rights Reserved.