Uses of Class
io.quarkus.gizmo2.GenericType
Packages that use GenericType
-
Uses of GenericType in io.quarkus.gizmo2
Subclasses of GenericType in io.quarkus.gizmo2Modifier and TypeClassDescriptionstatic final classA generic type corresponding to an array type.static classA generic type of a class or interface (including specialized cases: enums, records, or annotations).static final classA generic type corresponding to an inner class.static final classA generic type corresponding to a primitive type, includingvoid.static classA generic type corresponding to a reference type.static final classA generic type corresponding to a "root" (non-inner) class.static classA generic type corresponding to a reference type that is suitable for use in a methodthrowsclause.static final classA generic type corresponding to a type variable.Methods in io.quarkus.gizmo2 that return GenericTypeModifier and TypeMethodDescriptionGenericType.OfArray.componentType()Returns the component type of this array type.MethodTyped.genericReturnType()Returns the generic return type.Expr.genericType()Returns the generic expression type (notnull).GenericTyped.genericType()Returns the generic type of this entity (notnull).static GenericTypeReflection2Gizmo.genericTypeOf(AnnotatedParameterizedType type) Returns the given annotated parameterized type as a generic type (notnull).static GenericTypeReflection2Gizmo.genericTypeOf(AnnotatedType type) Returns the given annotated reflection type as a generic type (notnull).static GenericTypeReflection2Gizmo.genericTypeOf(Type type) Returns the given reflection type as a generic type (notnull).static GenericTypeReturns the given type as an erased generic type (notnull).static GenericTypeGenericType.of(Class<?> type, List<TypeArgument> typeArguments) Returns the given type as a generic type (notnull).static GenericTypeReturns the given type as an erased generic type (notnull).static GenericTypeGenericType.of(ClassDesc desc, List<TypeArgument> typeArguments) Returns the given type as a generic type (notnull).<A extends Annotation>
GenericTypeGenericType.withAnnotation(Class<A> annotationType) Returns this generic type with the given additional annotation (notnull).<A extends Annotation>
GenericTypeGenericType.withAnnotation(Class<A> annotationType, Consumer<AnnotationCreator<A>> builder) Returns this generic type with the given additional annotation (notnull).GenericType.withAnnotations(Consumer<AnnotatableCreator> builder) Returns this generic type with annotations added by the given builder (notnull).Methods in io.quarkus.gizmo2 with parameters of type GenericTypeModifier and TypeMethodDescriptionbooleanGenericType.equals(GenericType gt) Returnstrueif this object is equal to the given object, orfalseif it is not.booleanGenericType.OfPrimitive.equals(GenericType other) final booleanGenericType.OfReference.equals(GenericType gt) Expr.field(FieldDesc desc, GenericType genericType) Returns an assignable for a field of this object.default InstanceFieldVarExpr.field(ClassDesc owner, String name, GenericType type) Returns an assignable for a field of this object.static StaticFieldVarExpr.staticField(FieldDesc desc, GenericType genericType) Returns an assignable for a static field. -
Uses of GenericType in io.quarkus.gizmo2.creator
Methods in io.quarkus.gizmo2.creator with parameters of type GenericTypeModifier and TypeMethodDescriptionBlockCreator.cast(Expr a, GenericType toType) Cast a value to the given type.BlockCreator.instanceOf(Expr obj, GenericType type) Test whether the given object implements the given type.BlockCreator.invokeInterface(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.BlockCreator.invokeSpecial(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.BlockCreator.invokeStatic(GenericType genericReturnType, MethodDesc method, List<? extends Expr> args) Invoke a static method.BlockCreator.invokeVirtual(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.BlockCreator.localVar(String name, GenericType type, Expr value) Declare a local variable with givennameandtype, which is initialized to the givenvalue.default ExprBlockCreator.new_(GenericType type) Construct a new instance.BlockCreator.new_(GenericType genericType, ConstructorDesc ctor, List<? extends Expr> args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr... args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0, Expr arg1) Construct a new instance.default ExprBlockCreator.new_(GenericType type, List<? extends Expr> args) Construct a new instance.default ParamVarExecutableCreator.parameter(String name, int position, GenericType type) Add a parameter.default ParamVarExecutableCreator.parameter(String name, GenericType type) Add a parameter.voidMethodCreator.returning(GenericType type) Change the generic return type of this method.voidFieldCreator.setType(GenericType type) Change the type of the field to the given type.voidParamCreator.setType(GenericType type) Change the type of this parameter.BlockCreator.uncheckedCast(Expr a, GenericType toType) Cast an object value to the given type without a type check.