Examples of invokeinterface()


Examples of com.caucho.bytecode.CodeWriterAttribute.invokeInterface()

        stack += 1;
      }
    }

    if (isInterface) {
      code.invokeInterface(method.getDeclaringClass().getName().replace('.', '/'),
                           method.getName(),
                           createDescriptor(method),
                           stack, 1);
    }
    else {
View Full Code Here

Examples of com.facebook.presto.byteCode.Block.invokeInterface()

            Block isNotNull = new Block(context)
                    .getVariable("cursor")
                    .push(field);

            if (javaType == boolean.class) {
                isNotNull.invokeInterface(RecordCursor.class, "getBoolean", boolean.class, int.class);
            }
            else if (javaType == long.class) {
                isNotNull.invokeInterface(RecordCursor.class, "getLong", long.class, int.class);
            }
            else if (javaType == double.class) {
View Full Code Here

Examples of com.google.dexmaker.Code.invokeInterface()

                code.loadConstant(intValue, p);
                Local<?> parameter = code.getParameter(p, argTypes[p]);
                Local<?> unboxedIfNecessary = boxIfRequired(code, parameter, temp);
                code.aput(args, intValue, unboxedIfNecessary);
            }
            code.invokeInterface(methodInvoke, invokeResult, localHandler,
                    localThis, thisMethod, args);
            generateCodeForReturnStatement(code, returnType, invokeResult, resultHolder,
                    aBoxedResult);

            // This code is executed if proxy is null: call the original super method.
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream.invokeinterface()

    // TypeBinding type;
    if (methodBinding.isStatic())
      codeStream.invokestatic(methodBinding);
    else {
      if (methodBinding.declaringClass.isInterface()) {
        codeStream.invokeinterface(methodBinding);
      } else {
        codeStream.invokevirtual(methodBinding);
      }
    }
    AstUtil.generateReturn(dispatchBinding.returnType, codeStream);
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.invokeinterface()

                    ca.aload(loadPosition);
                }
                ca.aastore();
                loadPosition++;
            }
            ca.invokeinterface(InvocationHandler.class.getName(), "invoke",
                    "(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;");

            if (superclassMethod.getReturnType() != void.class) {
                if (superclassMethod.getReturnType().isPrimitive()) {
                    Boxing.unbox(ca, method.getReturnType());
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.invokeinterface()

            ca.newInstruction(serializableProxyClass.getName());
            ca.dup();
            ca.invokespecial(serializableProxyClass.getName(), "<init>", "()V");
            ca.dup();
            ca.aload(0);
            ca.invokeinterface(SerializableProxy.class.getName(), "setProxyInstance", "(Ljava/lang/Object;)V");
            ca.returnInstruction();
        }
    }

    /**
 
View Full Code Here

Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.invokeinterface()

        }
       
        if (Modifier.isStatic(method.getModifiers())) {
            m.invokestatic(p(method.getDeclaringClass()), method.getName(), sig(returnType, paramTypes));
        } else if (Modifier.isInterface(method.getDeclaringClass().getModifiers())) {
            m.invokeinterface(p(method.getDeclaringClass()), method.getName(), sig(returnType, paramTypes));
        } else {
            m.invokevirtual(p(method.getDeclaringClass()), method.getName(), sig(returnType, paramTypes));
        }
       
        if (returnType == void.class) {
View Full Code Here

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

        ga.loadThis();
        ga.getField(PROXY, "h", HANDLER);
        ga.loadThis();
        ga.getStatic(type, field, METHOD);
        ga.loadArgArray();
        ga.invokeInterface(HANDLER, INVOKE);
        if (m.getReturnType() != Type.VOID_TYPE) {
          ga.unbox(m.getReturnType());
        }
        ga.returnValue();
        ga.endMethod();
View Full Code Here

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

            ga.loadArgArray();
        }

        Label before = ga.mark();

        ga.invokeInterface(INVOCATION_HANDLER_TYPE,
                INVOCATION_HANDLER_INVOKE_METHOD);

        Label after = ga.mark();

        ga.unbox(m.getReturnType());
View Full Code Here

Examples of serp.bytecode.Code.invokeinterface()

        code.dup();
        if (params.length == 1) {
            code.aload().setParam(0);
            if (params[0] == Comparator.class) {
                code.checkcast().setType(SortedSet.class);
                code.invokeinterface().setMethod(SortedSet.class, "comparator",
                    Comparator.class, null);
            } else
                code.checkcast().setType(params[0]);
        }
        code.invokespecial().setMethod(type, "<init>", void.class, params);
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.