public final class ArrayTypeName extends TypeName
| 限定符和类型 | 字段和说明 |
|---|---|
TypeName |
componentType |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 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 © 2025 fossc. All rights reserved.