java.lang.Object
io.quarkus.gizmo2.GenericType
io.quarkus.gizmo2.GenericType.OfReference
io.quarkus.gizmo2.GenericType.OfThrows
- Direct Known Subclasses:
GenericType.OfClass,GenericType.OfTypeVariable
- Enclosing class:
- GenericType
A generic type corresponding to a reference type that is suitable for use in a method
throws clause.-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkus.gizmo2.GenericType
GenericType.OfArray, GenericType.OfClass, GenericType.OfInnerClass, GenericType.OfPrimitive, GenericType.OfReference, GenericType.OfRootClass, GenericType.OfThrows, GenericType.OfTypeVariable -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanequals(GenericType.OfReference other) Returnstrueif this object is equal to the given object, orfalseif it is not.booleanequals(GenericType.OfThrows other) Returnstrueif this object is equal to the given object, orfalseif it is not.<A extends Annotation>
GenericType.OfThrowswithAnnotation(Class<A> annotationType) Returns this generic type with the given additional annotation (notnull).<A extends Annotation>
GenericType.OfThrowswithAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder) Returns this generic type with the given additional annotation (notnull).withAnnotations(Consumer<AnnotatableCreator> builder) Returns this generic type with annotations added by the given builder (notnull).Methods inherited from class io.quarkus.gizmo2.GenericType.OfReference
equalsMethods inherited from class io.quarkus.gizmo2.GenericType
arrayType, desc, equals, hasAnnotations, hasAnnotations, hashCode, hasInvisibleAnnotations, hasVisibleAnnotations, isRaw, of, of, of, of, ofArray, ofArray, ofClass, ofClass, ofClass, ofClass, ofClass, ofClass, ofInnerClass, ofPrimitive, ofPrimitive, ofTypeVariable, ofTypeVariable, ofTypeVariable, signatureNeeded, toString, toString
-
Method Details
-
withAnnotations
Description copied from class:GenericTypeReturns this generic type with annotations added by the given builder (notnull).- Overrides:
withAnnotationsin classGenericType.OfReference- Parameters:
builder- the annotation builder (must not benull)- Returns:
- this generic type with annotations added by the given builder (not
null)
-
withAnnotation
Description copied from class:GenericTypeReturns this generic type with the given additional annotation (notnull).- Overrides:
withAnnotationin classGenericType.OfReference- Parameters:
annotationType- the annotation type (must not benull)- Returns:
- this generic type with the given additional annotation (not
null)
-
withAnnotation
public <A extends Annotation> GenericType.OfThrows withAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder) Description copied from class:GenericTypeReturns this generic type with the given additional annotation (notnull).- Overrides:
withAnnotationin classGenericType.OfReference- Parameters:
annotationType- the annotation type (must not benull)builder- the builder for the given annotation type (must not benull)- Returns:
- this generic type with the given additional annotation (not
null)
-
equals
Description copied from class:GenericType.OfReferenceReturnstrueif this object is equal to the given object, orfalseif it is not.- Overrides:
equalsin classGenericType.OfReference- Returns:
trueif this object is equal to the given object, orfalseif it is not
-
equals
Returnstrueif this object is equal to the given object, orfalseif it is not.- Returns:
trueif this object is equal to the given object, orfalseif it is not
-