Class SignatureMethodCreator
java.lang.Object
io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.quarkus.gizmo.MethodCreatorgetMethodCreator(String methodName, io.quarkus.gizmo.ClassCreator classCreator, SignatureMethodCreator.ReturnType returnType, SignatureMethodCreator.Parameter... parameters) Creates a method using a signature (which allows declaring parameterized types like lists).
-
Constructor Details
-
SignatureMethodCreator
public SignatureMethodCreator()
-
-
Method Details
-
getMethodCreator
public static io.quarkus.gizmo.MethodCreator getMethodCreator(String methodName, io.quarkus.gizmo.ClassCreator classCreator, SignatureMethodCreator.ReturnType returnType, SignatureMethodCreator.Parameter... parameters) Creates a method using a signature (which allows declaring parameterized types like lists). For example, for the method: "Listlist(List sort, int size, int other, String uri)" It will use the following signature the generated the method: "(Ljava/util/List<Ljava/lang/String;>;IILjava/lang/String;)Ljava/util/List<Ljava/lang/String;>;". One useful utility to verify the method signatures is using "javap -v Test.class" where the Test java class is a compiled version of the method you want to see the signature. -
param
-
param
public static SignatureMethodCreator.Parameter param(String name, Object clazz, io.quarkus.gizmo.Type type) -
responseType
-
uniType
-