Package com.squareup.javapoet
Class ArrayTypeName
java.lang.Object
com.squareup.javapoet.TypeName
com.squareup.javapoet.ArrayTypeName
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ArrayTypeName
(TypeName componentType) private
ArrayTypeName
(TypeName componentType, List<AnnotationSpec> annotations) -
Method Summary
Modifier and TypeMethodDescriptionannotated
(List<AnnotationSpec> annotations) (package private) CodeWriter
emit
(CodeWriter out) (package private) CodeWriter
emit
(CodeWriter out, boolean varargs) private CodeWriter
emitBrackets
(CodeWriter out, boolean varargs) private CodeWriter
emitLeafType
(CodeWriter out) static ArrayTypeName
get
(GenericArrayType type) Returns an array type equivalent totype
.(package private) static ArrayTypeName
get
(GenericArrayType type, Map<Type, TypeVariableName> map) static ArrayTypeName
Returns an array type equivalent tomirror
.(package private) static ArrayTypeName
get
(ArrayType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) static ArrayTypeName
Returns an array type whose elements are all instances ofcomponentType
.static ArrayTypeName
Returns an array type whose elements are all instances ofcomponentType
.Methods inherited from class com.squareup.javapoet.TypeName
annotated, arrayComponent, asArray, box, concatAnnotations, emitAnnotations, equals, get, get, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, list, list, toString, unbox
-
Field Details
-
componentType
-
-
Constructor Details
-
ArrayTypeName
-
ArrayTypeName
-
-
Method Details
-
annotated
-
withoutAnnotations
- Overrides:
withoutAnnotations
in classTypeName
-
emit
- Overrides:
emit
in classTypeName
- Throws:
IOException
-
emit
- Throws:
IOException
-
emitLeafType
- Throws:
IOException
-
emitBrackets
- Throws:
IOException
-
of
Returns an array type whose elements are all instances ofcomponentType
. -
of
Returns an array type whose elements are all instances ofcomponentType
. -
get
Returns an array type equivalent tomirror
. -
get
static ArrayTypeName get(ArrayType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) -
get
Returns an array type equivalent totype
. -
get
-