Class SignatureMethodCreator
- java.lang.Object
-
- io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator
-
public final class SignatureMethodCreator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignatureMethodCreator.ReturnType
-
Constructor Summary
Constructors Constructor Description SignatureMethodCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.quarkus.gizmo.MethodCreatorgetMethodCreator(String methodName, io.quarkus.gizmo.ClassCreator classCreator, SignatureMethodCreator.ReturnType returnType, Object... parameters)Creates a method using a signature (which allows declaring parameterized types like lists).static SignatureMethodCreator.ReturnTypeofType(Class<?> type, Object... parameterTypes)
-
-
-
Method Detail
-
getMethodCreator
public static io.quarkus.gizmo.MethodCreator getMethodCreator(String methodName, io.quarkus.gizmo.ClassCreator classCreator, SignatureMethodCreator.ReturnType returnType, Object... 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 ;IILjava/lang/String;)Ljava/util/List ;". 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.
-
ofType
public static SignatureMethodCreator.ReturnType ofType(Class<?> type, Object... parameterTypes)
-
-