Examples of endMethod()


Examples of clojure.asm.commons.GeneratorAdapter.endMethod()

      ctorgen.visitVarInsn(OBJECT_TYPE.getOpcode(Opcodes.ILOAD), a);
      ctorgen.putField(fntype, lb.name, OBJECT_TYPE);
      }
    ctorgen.returnValue();
    //  ctorgen.visitMaxs(1, 1);
    ctorgen.endMethod();

    //override of invoke/doInvoke for each method
    for(ISeq s = RT.seq(methods); s != null; s = s.rest())
      {
      FnMethod method = (FnMethod) s.first();
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlowReporter.endMethod()

            if(GitHelper.remoteBranchExists(flow.git(), prefixedBranchName, reporter))
            {
                if(GitHelper.localBranchBehindRemote(flow.git(),prefixedBranchName,reporter))
                {
                    reporter.errorText("feature-finish","local branch '" + prefixedBranchName + "' is behind the remote branch");
                    reporter.endMethod();
                    reporter.flush();
                    throw new BranchOutOfDateException("local branch '" + prefixedBranchName + "' is behind the remote branch");
                }
            }
View Full Code Here

Examples of com.hannesdorfmann.fragmentargs.repacked.com.squareup.javawriter.JavaWriter.endMethod()

        for (AnnotatedField arg : required) {
          writePutArguments(jw, arg.getVariableName(), "mArguments", arg);
        }

        jw.endMethod();

        if (!required.isEmpty()) {
          writeNewFragmentWithRequiredMethod(builder, entry.getKey(), jw, args);
        }
View Full Code Here

Examples of com.squareup.javawriter.JavaWriter.endMethod()

    for (String providerName : descriptor.providerNames().values()) {
      writer.emitStatement("this.%1$s = %1$s", providerName);
    }

    writer.endMethod();

    for (final FactoryMethodDescriptor methodDescriptor : descriptor.methodDescriptors()) {
      writer.beginMethod(methodDescriptor.returnType(), methodDescriptor.name(),
          methodDescriptor.publicMethod() ? EnumSet.of(PUBLIC) : EnumSet.noneOf(Modifier.class),
          parameterTokens(methodDescriptor.passedParameters()));
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.commons.GeneratorAdapter.endMethod()

            mv.visitLabel(longOperation);
            asLong(mv, 0);
            asLong(mv, 1);
            integerOp.accept(mv);
            mv.returnValue();
            mv.endMethod();
        }

        static void asDouble(GeneratorAdapter mv, int arg) {
            mv.loadArg(arg);
            mv.invokeStatic(getType(Double.class), method("longBitsToDouble", desc(double.class, long.class)));
View Full Code Here

Examples of org.cruxframework.crux.core.server.dispatch.st.CruxSynchronizerTokenHandler.endMethod()

      finally
      {
        if (useToken)
        {
          String methodFullSignature = handler.getMethodDescription(rpcRequest.getMethod());
          handler.endMethod(methodFullSignature);
        }
      }
    }
    catch (IncompatibleRemoteServiceException ex)
    {
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.endMethod()

      GeneratorAdapter ga = new GeneratorAdapter(ACC_PUBLIC, m, mv);
      ga.visitCode();
      ga.loadThis();
      ga.invokeConstructor(Type.getType("Ljava/lang/Object;"), m);
      ga.returnValue();
      ga.endMethod();
    }
    mv = cv.visitMethod(ACC_PUBLIC, "getF", "()I", null, null);
    if (mv != null) {
      Type bean = Type.getType("Lpkg/Bean;");
      Method m = Method.getMethod("int getF()");
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.endMethod()

      GeneratorAdapter ga = new GeneratorAdapter(ACC_PUBLIC, m, mv);
      ga.visitCode();
      ga.loadThis();
      ga.getField(bean, "f", Type.INT_TYPE);
      ga.returnValue();
      ga.endMethod();
    }
    mv = cv.visitMethod(ACC_PUBLIC, "setF", "(I)V", null, null);
    if (mv != null) {
      Type bean = Type.getType("Lpkg/Bean;");
      Method m = Method.getMethod("void setF(int)");
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.endMethod()

      ga.visitCode();
      ga.loadThis();
      ga.loadArg(0);
      ga.putField(bean, "f", Type.INT_TYPE);
      ga.returnValue();
      ga.endMethod();
    }
    mv = cv.visitMethod(ACC_PUBLIC, "checkAndSetF", "(I)V", null, null);
    if (mv != null) {
      Type bean = Type.getType("Lpkg/Bean;");
      Method m = Method.getMethod("void checkAndSetF(int)");
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.endMethod()

      ga.mark(label);
      ga.throwException(Type.getType(IllegalArgumentException.class),
          "f");
      ga.mark(end);
      ga.returnValue();
      ga.endMethod();
    }
    cv.visitEnd();
    byte[] b = cw.toByteArray();
    return b;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.