java.lang.Object
io.quarkus.gizmo2.GenericType
io.quarkus.gizmo2.GenericType.OfReference
io.quarkus.gizmo2.GenericType.OfThrows
io.quarkus.gizmo2.GenericType.OfClass
io.quarkus.gizmo2.GenericType.OfRootClass
- Enclosing class:
- GenericType
A generic type corresponding to a "root" (non-inner) class.
"Root" classes are top-level classes and
static member classes.-
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 TypeMethodDescriptiondesc()Returns the erased type descriptor for this generic type (notnull).booleanequals(GenericType.OfClass other) Returnstrueif this object is equal to the given object, orfalseif it is not.booleanequals(GenericType.OfRootClass other) Returnstrueif this object is equal to the given object, orfalseif it is not.inthashCode()Returns the hash code of this generic type.Append a string representation of this type to the given string builder.<A extends Annotation>
GenericType.OfRootClasswithAnnotation(Class<A> annotationType) Returns this generic type with the given additional annotation (notnull).<A extends Annotation>
GenericType.OfRootClasswithAnnotation(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).withArguments(List<TypeArgument> newArguments) Returns a copy of this generic type with the given type arguments.Methods inherited from class io.quarkus.gizmo2.GenericType.OfClass
equals, hasInvisibleAnnotations, hasVisibleAnnotations, isRaw, typeArgumentsMethods inherited from class io.quarkus.gizmo2.GenericType.OfThrows
equalsMethods inherited from class io.quarkus.gizmo2.GenericType.OfReference
equalsMethods inherited from class io.quarkus.gizmo2.GenericType
arrayType, equals, hasAnnotations, hasAnnotations, of, of, of, of, ofArray, ofArray, ofClass, ofClass, ofClass, ofClass, ofClass, ofClass, ofInnerClass, ofPrimitive, ofPrimitive, ofTypeVariable, ofTypeVariable, ofTypeVariable, signatureNeeded, toString
-
Method Details
-
withArguments
Description copied from class:GenericType.OfClassReturns a copy of this generic type with the given type arguments.- Overrides:
withArgumentsin classGenericType.OfClass- Parameters:
newArguments- the new type arguments (must not benull)- Returns:
- a copy of this generic type with the given type arguments
-
desc
Description copied from class:GenericTypeReturns the erased type descriptor for this generic type (notnull).- Specified by:
descin classGenericType- Returns:
- the erased type descriptor for this generic type (not
null)
-
withAnnotations
Description copied from class:GenericTypeReturns this generic type with annotations added by the given builder (notnull).- Overrides:
withAnnotationsin classGenericType.OfClass- 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.OfClass- 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.OfRootClass 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.OfClass- 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.OfClassReturnstrueif this object is equal to the given object, orfalseif it is not.- Overrides:
equalsin classGenericType.OfClass- 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
-
hashCode
public int hashCode()Description copied from class:GenericTypeReturns the hash code of this generic type.- Overrides:
hashCodein classGenericType.OfClass- Returns:
- the hash code of this generic type
-
toString
Description copied from class:GenericTypeAppend a string representation of this type to the given string builder.- Overrides:
toStringin classGenericType- Parameters:
b- the string builder (must not benull)- Returns:
- the string builder that was passed in (not
null)
-