Examples of invokeConstructor()


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

    ctorgen.visitLineNumber(line, ctorgen.mark());
    ctorgen.loadThis();
    if(isVariadic()) //RestFn ctor takes reqArity arg
      {
      ctorgen.push(variadicMethod.reqParms.count());
      ctorgen.invokeConstructor(restFnType, restfnctor);
      }
    else
      ctorgen.invokeConstructor(aFnType, afnctor);
    int a = 1;
    for(ISeq s = RT.keys(closes); s != null; s = s.rest(), ++a)
View Full Code Here

Examples of com.alibaba.citrus.codegen.CodeBuilder.invokeConstructor()

    public static void addDefaultConstructor(ClassBuilder cb) {
        MethodBuilder mb = cb.addConstructor(null, null);
        CodeBuilder code = mb.startCode();

        code.loadThis();
        code.invokeConstructor(cb.getSuperType(), new com.alibaba.citrus.asm.commons.Method(CONSTRUCTOR_NAME, "()V"));
        code.returnValue();
    }

    /**
     * ����һ�����س�����<code>toString()</code>������
 
View Full Code Here

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

                .dup();

        for (ByteCodeExpression parameter : parameters) {
            block.append(parameter);
        }
        return block.invokeConstructor(getType(), parameterTypes);
    }

    @Override
    protected String formatOneLine()
    {
View Full Code Here

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

        // TProtocolReader reader = new TProtocolReader(protocol);
        read.addLocalVariable(type(TProtocolReader.class), "reader");
        read.newObject(TProtocolReader.class);
        read.dup();
        read.loadVariable("protocol");
        read.invokeConstructor(type(TProtocolReader.class), type(TProtocol.class));
        read.storeVariable("reader");

        // read all of the data in to local variables
        Map<Short, LocalVariableDefinition> structData = readFieldValues(read);
View Full Code Here

Examples of groovy.lang.MetaClass.invokeConstructor()

        }
        if (mc == null) ofi.setMetaClassForNode(nodeName, null);
      }
    }
   
    return (T) (mc == null ? null : mc.invokeConstructor(parent == null || !ofi.isPassParentToConstructor() ? EMPTY_ARRAY : new Object[] { parent }));
  }
 
}
View Full Code Here

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

        }

        void constructor() {
            GeneratorAdapter ctor = generator(ACC_PUBLIC, method("<init>", desc(void.class)));
            ctor.loadThis();
            ctor.invokeConstructor(getType(Object.class), method("<init>", desc(void.class)));
            ctor.returnValue();
            ctor.endMethod();
        }

        void bindTo(Handle handle, Object arg) {
View Full Code Here

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

            builder.loadThis();
            builder.loadArgument(0);
            builder.loadArgument(1);
            builder.loadArgument(2);
            builder.invokeConstructor(AbstractMethodInvocation.class, Object.class, InstanceContext.class,
                    MethodInvocationBundle.class);

            for (int i = 0; i < description.argumentTypes.length; i++)
            {
                String name = "p" + i;
View Full Code Here

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

            builder.loadThis().getField(className, fieldName, constructorTypes[2]);

            // Load up the actual method parameters

            builder.loadArguments();
            builder.invokeConstructor(invocationClassName, constructorTypes);

            // That leaves an instance of the invocation class on the stack. If the method is void
            // and throws no checked exceptions, then the variable actually isn't used. This code
            // should be refactored a bit once there are tests for those cases.
View Full Code Here

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

            b.loadConstant(methodType == READ_METHOD);

            // Params to invoke NoSuchPropertyException.<init>.
            TypeDesc[] params = {TypeDesc.STRING, TypeDesc.BOOLEAN};

            b.invokeConstructor(NoSuchPropertyException.class.getName(), params);
            b.throwObject();
        }
    }

    /**
 
View Full Code Here

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

            builder.loadThis();
            builder.loadArgument(0);
            builder.loadArgument(1);
            builder.loadArgument(2);
            builder.invokeConstructor(AbstractMethodInvocation.class, Object.class, InstanceContext.class,
                    MethodAdvice[].class);

            for (int i = 0; i < description.argumentTypes.length; i++)
            {
                String name = "p" + i;
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.