java.lang.Object
io.quarkus.gizmo2.TypeArgument
io.quarkus.gizmo2.TypeArgument.OfWildcard
io.quarkus.gizmo2.TypeArgument.OfExtends
- All Implemented Interfaces:
TypeArgument.OfBounded,TypeArgument.OfTyped
- Enclosing class:
- TypeArgument
public static final class TypeArgument.OfExtends
extends TypeArgument.OfWildcard
implements TypeArgument.OfBounded
A wildcard type argument with an upper (
extends) bound.-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkus.gizmo2.TypeArgument
TypeArgument.OfBounded, TypeArgument.OfExact, TypeArgument.OfExtends, TypeArgument.OfSuper, TypeArgument.OfTyped, TypeArgument.OfUnbounded, TypeArgument.OfWildcard -
Method Summary
Modifier and TypeMethodDescriptionbound()Returns the bound of this wildcard (notnull).booleanequals(TypeArgument.OfExtends other) booleanequals(TypeArgument.OfWildcard other) inthashCode()booleanReturnstrueif runtime-invisible type annotations are present, orfalseotherwise.booleanReturnstrueif runtime-visible type annotations are present, orfalseotherwise.Append the string representation of this type argument to the given builder, and return it.<A extends Annotation>
TypeArgument.OfExtendswithAnnotation(Class<A> annotationType) Returns a copy of this type argument with the given annotation.<A extends Annotation>
TypeArgument.OfExtendswithAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder) Returns a copy of this type argument with the given annotation.withAnnotations(Consumer<AnnotatableCreator> builder) Returns a copy of this type argument with annotations defined by the given builder.Methods inherited from class io.quarkus.gizmo2.TypeArgument.OfWildcard
equalsMethods inherited from class io.quarkus.gizmo2.TypeArgument
hasAnnotations, of, of, ofExact, ofExtends, ofSuper, ofUnbounded, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.gizmo2.TypeArgument.OfBounded
type
-
Method Details
-
bound
Description copied from interface:TypeArgument.OfBoundedReturns the bound of this wildcard (notnull).- Specified by:
boundin interfaceTypeArgument.OfBounded- Returns:
- the bound of this wildcard (not
null)
-
hasVisibleAnnotations
public boolean hasVisibleAnnotations()Description copied from class:TypeArgumentReturnstrueif runtime-visible type annotations are present, orfalseotherwise.- Overrides:
hasVisibleAnnotationsin classTypeArgument.OfWildcard- Returns:
trueif runtime-visible type annotations are present, orfalseotherwise
-
hasInvisibleAnnotations
public boolean hasInvisibleAnnotations()Description copied from class:TypeArgumentReturnstrueif runtime-invisible type annotations are present, orfalseotherwise.- Overrides:
hasInvisibleAnnotationsin classTypeArgument.OfWildcard- Returns:
trueif runtime-invisible type annotations are present, orfalseotherwise
-
withAnnotations
Description copied from class:TypeArgument.OfWildcardReturns a copy of this type argument with annotations defined by the given builder.- Overrides:
withAnnotationsin classTypeArgument.OfWildcard- Parameters:
builder- the annotation builder (must not benull)- Returns:
- a copy of this type argument with annotations defined by the given builder
-
withAnnotation
Description copied from class:TypeArgument.OfWildcardReturns a copy of this type argument with the given annotation.- Overrides:
withAnnotationin classTypeArgument.OfWildcard- Parameters:
annotationType- the annotation type- Returns:
- a copy of this type argument with the given annotation
-
withAnnotation
public <A extends Annotation> TypeArgument.OfExtends withAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder) Description copied from class:TypeArgument.OfWildcardReturns a copy of this type argument with the given annotation.- Overrides:
withAnnotationin classTypeArgument.OfWildcard- Parameters:
annotationType- the annotation typebuilder- the builder for the single annotation (must not benull)- Returns:
- a copy of this type argument with the given annotation
-
equals
- Overrides:
equalsin classTypeArgument.OfWildcard
-
equals
-
hashCode
public int hashCode()- Overrides:
hashCodein classTypeArgument.OfWildcard
-
toString
Description copied from class:TypeArgumentAppend the string representation of this type argument to the given builder, and return it.- Overrides:
toStringin classTypeArgument.OfWildcard- Parameters:
b- the string builder (must not benull)- Returns:
- the same string builder (not
null)
-