Class SignatureMethodCreator


  • public final class SignatureMethodCreator
    extends Object
    • Constructor Detail

      • SignatureMethodCreator

        public SignatureMethodCreator()
    • Method Detail

      • getMethodCreator

        public static io.quarkus.gizmo.MethodCreator getMethodCreator​(String methodName,
                                                                      io.quarkus.gizmo.ClassCreator classCreator,
                                                                      SignatureMethodCreator.ReturnType returnType,
                                                                      List<SignatureMethodCreator.Parameter> parameters)
        Creates a method using a signature (which allows declaring parameterized types like lists). For example, for the method: "List list(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.
      • 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: "List list(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.