Class ArrayTypeName
java.lang.Object
com.squareup.javapoet.TypeName
com.squareup.javapoet.ArrayTypeName
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArrayTypeName(TypeName componentType) privateArrayTypeName(TypeName componentType, List<AnnotationSpec> annotations) -
Method Summary
Modifier and TypeMethodDescriptionannotated(List<AnnotationSpec> annotations) (package private) CodeWriteremit(CodeWriter out) (package private) CodeWriteremit(CodeWriter out, boolean varargs) private CodeWriteremitBrackets(CodeWriter out, boolean varargs) private CodeWriteremitLeafType(CodeWriter out) static ArrayTypeNameget(GenericArrayType type) Returns an array type equivalent totype.(package private) static ArrayTypeNameget(GenericArrayType type, Map<Type, TypeVariableName> map) static ArrayTypeNameReturns an array type equivalent tomirror.(package private) static ArrayTypeNameget(ArrayType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) static ArrayTypeNameReturns an array type whose elements are all instances ofcomponentType.static ArrayTypeNameReturns an array type whose elements are all instances ofcomponentType.Methods inherited from class 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:
withoutAnnotationsin classTypeName
-
emit
- Overrides:
emitin 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
-