Package com.squareup.javapoet
Class WildcardTypeName
java.lang.Object
com.squareup.javapoet.TypeName
com.squareup.javapoet.WildcardTypeName
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds) privateWildcardTypeName(List<TypeName> upperBounds, List<TypeName> lowerBounds, List<AnnotationSpec> annotations) -
Method Summary
Modifier and TypeMethodDescriptionannotated(List<AnnotationSpec> annotations) (package private) CodeWriteremit(CodeWriter out) static TypeNameget(WildcardType wildcardName) (package private) static TypeNameget(WildcardType wildcardName, Map<Type, TypeVariableName> map) static TypeNameget(WildcardType mirror) (package private) static TypeNameget(WildcardType mirror, Map<TypeParameterElement, TypeVariableName> typeVariables) static WildcardTypeNameReturns a type that represents an unknown type that extendsbound.static WildcardTypeNamestatic WildcardTypeNamesupertypeOf(TypeName lowerBound) Returns a type that represents an unknown supertype ofbound.static WildcardTypeNamesupertypeOf(Type lowerBound) 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
-
upperBounds
-
lowerBounds
-
-
Constructor Details
-
WildcardTypeName
-
WildcardTypeName
-
-
Method Details
-
annotated
-
withoutAnnotations
- Overrides:
withoutAnnotationsin classTypeName
-
emit
- Overrides:
emitin classTypeName- Throws:
IOException
-
subtypeOf
Returns a type that represents an unknown type that extendsbound. For example, ifboundisCharSequence.class, this returns? extends CharSequence. IfboundisObject.class, this returns?, which is shorthand for? extends Object. -
subtypeOf
-
supertypeOf
Returns a type that represents an unknown supertype ofbound. For example, ifboundisString.class, this returns? super String. -
supertypeOf
-
get
-
get
-
get
-
get
-