Package io.micronaut.sourcegen.javapoet
Class WildcardTypeName
java.lang.Object
io.micronaut.sourcegen.javapoet.TypeName
io.micronaut.sourcegen.javapoet.WildcardTypeName
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionannotated(List<AnnotationSpec> annotations) static TypeNameget(WildcardType wildcardName) static TypeNameget(WildcardType mirror) 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 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:
withoutAnnotationsin classTypeName
-
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
-