Package io.micronaut.sourcegen.javapoet
Class WildcardTypeName
java.lang.Object
io.micronaut.sourcegen.javapoet.TypeName
io.micronaut.sourcegen.javapoet.WildcardTypeName
-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionannotated
(List<AnnotationSpec> annotations) static TypeName
get
(WildcardType wildcardName) static TypeName
get
(WildcardType mirror) static WildcardTypeName
Returns a type that represents an unknown type that extendsbound
.static WildcardTypeName
static WildcardTypeName
supertypeOf
(TypeName lowerBound) Returns a type that represents an unknown supertype ofbound
.static WildcardTypeName
supertypeOf
(Type lowerBound) Methods inherited from class io.micronaut.sourcegen.javapoet.TypeName
annotated, box, concatAnnotations, equals, get, get, hashCode, isAnnotated, isBoxedPrimitive, isPrimitive, toString, unbox
-
Field Details
-
upperBounds
-
lowerBounds
-
-
Method Details
-
annotated
-
withoutAnnotations
- Overrides:
withoutAnnotations
in classTypeName
-
subtypeOf
Returns a type that represents an unknown type that extendsbound
. For example, ifbound
isCharSequence.class
, this returns? extends CharSequence
. Ifbound
isObject.class
, this returns?
, which is shorthand for? extends Object
. -
subtypeOf
-
supertypeOf
Returns a type that represents an unknown supertype ofbound
. For example, ifbound
isString.class
, this returns? super String
. -
supertypeOf
-
get
-
get
-