Package org.apache.tapestry5.plastic

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


    private void createOverrideOfBaseClassImpl(MethodDescription methodDescription, MethodNode methodNode)
    {
        InstructionBuilder builder = newBuilder(methodDescription, methodNode);

        builder.loadThis();
        builder.loadArguments();
        builder.invokeSpecial(superClassName, methodDescription);
        builder.returnResult();
    }
View Full Code Here


    {
        MethodNode mn = new MethodNode(ACC_PUBLIC, CONSTRUCTOR_NAME, NOTHING_TO_VOID, null, null);

        InstructionBuilder builder = newBuilder(mn);

        builder.loadThis().invokeConstructor(PlasticClassHandleShim.class).returnResult();

        shimClassNode.methods.add(mn);

    }
View Full Code Here

            // But it is safe enough for the two nodes to share
            mn.exceptions = node.exceptions;

            InstructionBuilder builder = newBuilder(mn);

            builder.loadThis();
            builder.loadArguments();
            builder.invokeSpecial(className, description);
            builder.returnResult();

            addMethod(mn);
View Full Code Here

            InstructionBuilder builder = newBuilder(setAccess);

            pushFieldConduitOntoStack(conduitFieldName, builder);

            builder.loadThis();

            pushInstanceContextFieldOntoStack(builder);

            // Take the value passed to this method and push it onto the stack.
View Full Code Here

            builder.invoke(FieldConduit.class, void.class, "set", Object.class, InstanceContext.class, Object.class);

            if (isWriteBehindEnabled())
            {
                builder.loadThis().loadArgument(0).putField(className, node.name, typeName);
            }

            builder.returnResult();

            addMethod(setAccess);
View Full Code Here

            // Get the correct FieldConduit object on the stack

            pushFieldConduitOntoStack(conduitFieldName, builder);

            builder.loadThis();

            // Now push the instance context on the stack

            pushInstanceContextFieldOntoStack(builder);
View Full Code Here

            MethodNode mn = new MethodNode(ACC_SYNTHETIC | ACC_FINAL, name, "(" + node.desc + ")V", null, null);

            InstructionBuilder builder = newBuilder(mn);

            builder.loadThis().loadArgument(0).putField(className, node.name, typeName);
            builder.returnResult();

            addMethod(mn);

            fieldTransformMethods.add(mn);
View Full Code Here

            MethodNode mn = new MethodNode(ACC_SYNTHETIC | ACC_FINAL, name, "()" + node.desc, null, null);

            InstructionBuilder builder = newBuilder(mn);

            builder.loadThis().getField(className, node.name, typeName).returnResult();

            addMethod(mn);

            fieldTransformMethods.add(mn);
View Full Code Here

            InstructionBuilder builder = newBuilder(cons);

            // First three arguments go to the super-class

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

            for (int i = 0; i < description.argumentTypes.length; i++)
            {
                String name = "p" + i;
                String type = description.argumentTypes[i];

                builder.loadThis();
                builder.loadArgument(3 + i);
                builder.putField(invocationClassName, name, type);
            }

            builder.returnResult();
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.