- All Superinterfaces:
AnnotatableCreator
A creator for a type parameter.
-
Method Summary
Modifier and TypeMethodDescriptionname()Returns the name of the type variable being created (notnull).voidsetFirstBound(GenericType.OfClass bound) Establish the (optional) first bound for the type variable.voidEstablish the (optional) first bound for the type variable.default voidsetOtherBounds(GenericType.OfClass... bounds) Establish the other (secondary) bounds for the type variable.voidsetOtherBounds(List<GenericType.OfClass> bounds) Establish the other (secondary) bounds for the type variable.Methods inherited from interface io.quarkus.gizmo2.creator.AnnotatableCreator
addAnnotation, addAnnotation, addAnnotation, addAnnotation
-
Method Details
-
name
String name()Returns the name of the type variable being created (notnull).- Returns:
- the name of the type variable being created (not
null)
-
setFirstBound
Establish the (optional) first bound for the type variable. The first bound is a class type.- Parameters:
bound- the first bound (must not benull)
-
setFirstBound
Establish the (optional) first bound for the type variable. The first bound is a type variable. In this case, no other bounds may be present.- Parameters:
bound- the first bound (must not benull)
-
setOtherBounds
Establish the other (secondary) bounds for the type variable. The other bounds must all be interface types. If the first bound is a type variable, there may be no other bounds.It is possible to set the other bounds without setting the first bound. In this case, all bounds are interface types.
- Parameters:
bounds- the secondary bounds (must not benull)
-
setOtherBounds
Establish the other (secondary) bounds for the type variable. The other bounds must all be interface types. If the first bound is a type variable, there may be no other bounds.It is possible to set the other bounds without setting the first bound. In this case, all bounds are interface types.
- Parameters:
bounds- the secondary bounds (must not benull)
-