Examples of invokeVirtual()


Examples of com.facebook.swift.codec.internal.compiler.byteCode.MethodDefinition.invokeVirtual()

            if (writeMethod == null) {
                throw new IllegalArgumentException(
                        "Unsupported field type " + field.getType().getProtocolType()
                );
            }
            write.invokeVirtual(writeMethod);

            //
            // If not written because of a null, clean-up the stack
            if (!isProtocolTypeJavaPrimitive(field) || !isFieldTypeJavaPrimitive(field)) {
View Full Code Here

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

        // System.out.println(s);
        FieldId<System, PrintStream> systemOutField = systemType.getField(printStreamType, "out");
        code.sget(systemOutField, localSystemOut);
        MethodId<PrintStream, Void> printlnMethod = printStreamType.getMethod(
                TypeId.VOID, "println", TypeId.STRING);
        code.invokeVirtual(printlnMethod, null, localSystemOut, s);

        // return;
        code.returnVoid();
    }
}
View Full Code Here

Examples of com.headius.invokebinder.Binder.invokeVirtual()

      MethodHandle originalHandle = lookup.findVirtual(type, method.getName(), description);

      Binder binder = createBinder(method, parameterTypes.length).cast(originalHandle.type());

      return binder.invokeVirtual(lookup, method.getName());
    } catch (Exception e) {
      throw new RuntimeException(e);
    }

  }
View Full Code Here

Examples of org.apache.tapestry5.plastic.InstructionBuilder.invokeVirtual()

                    block.addTry(new InstructionBuilderCallback()
                    {

                        public void doBuild(InstructionBuilder builder)
                        {
                            builder.invokeVirtual(className, description.returnType, newMethodName,
                                    description.argumentTypes);

                            if (!isVoid)
                                builder.putField(invocationClassName, RETURN_VALUE, description.returnType);
View Full Code Here

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

    }

    // call run
    ReferenceBinding closureType = (ReferenceBinding) binding.parameters[nargs - 1];
    MethodBinding runMethod = closureType.getMethods("run".toCharArray())[0];
    codeStream.invokevirtual(runMethod);

    TypeBinding returnType = binding.returnType;
    if (returnType.isBaseType()) {
      codeStream.invokestatic(AjTypeConstants.getConversionMethodFromObject(classScope, returnType));
    } else {
View Full Code Here

Examples of org.cojen.classfile.CodeBuilder.invokeVirtual()

                b.loadLocal(valueVar);
                b.loadLocal(beanVar);
                b.invoke(bp.getReadMethod());
                b.convert(TypeDesc.forClass(bp.getType()), TypeDesc.OBJECT);
                b.invokeVirtual(Object.class.getName(), "equals", TypeDesc.BOOLEAN, params);

                Label noMatch = b.createLabel();
                b.ifZeroComparisonBranch(noMatch, "==");
                b.loadConstant(true);
                b.returnValue(TypeDesc.BOOLEAN);
View Full Code Here

Examples of org.cojen.classfile.CodeBuilder.invokeVirtual()

                }
            }

            if (properties.length > 1) {
                b.loadLocal(propertyVar);
                b.invokeVirtual(String.class.getName(), "hashCode", TypeDesc.INT, null);
                b.loadConstant(0x7fffffff);
                b.math(Opcode.IAND);
                b.loadConstant(caseCount);
                b.math(Opcode.IREM);
           
View Full Code Here

Examples of org.cojen.classfile.CodeBuilder.invokeVirtual()

                   
                    // Test against name to find exact match.
                   
                    b.loadConstant(bp.getName());
                    b.loadLocal(propertyVar);
                    b.invokeVirtual(String.class.getName(), "equals", TypeDesc.BOOLEAN, params);
                   
                    Label notEqual;
                   
                    if (j == matchCount - 1) {
                        notEqual = null;
View Full Code Here

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

            String typeName = returnType.getName();
            invoke += (Character.toUpperCase(typeName.charAt(0))
                    + typeName.substring(1));
            ret = DescriptorUtils.makeDescriptor(returnType);
        }
        ca.invokevirtual(superclass.getName(), invoke, "(Ljava/lang/String;Lorg/jboss/as/jacorb/rmi/marshal/strategy/StubStrategy;[Ljava/lang/Object;)" + ret);
        if (!returnType.isPrimitive() && returnType != Object.class) {
            ca.checkcast(returnType);
        }
        ca.returnInstruction();
View Full Code Here

Examples of org.jplastic.core.InstructionBuilder.invokeVirtual()

                    block.addTry(new InstructionBuilderCallback()
                    {

                        public void doBuild(InstructionBuilder builder)
                        {
                            builder.invokeVirtual(className, description.returnType, newMethodName,
                                    description.argumentTypes);

                            if (!isVoid)
                                builder.putField(invocationClassName, RETURN_VALUE, description.returnType);
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.