Examples of appendLoadLocal()


Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

            // build the serializer method (just delegates to value method)
            ClassFile cf = bndclas.getMungedFile();
            ExceptionMethodBuilder smeth = new ExceptionMethodBuilder
                (CUSTOM_ENUM_SERIALIZER_NAME, sersig, cf,
                Constants.ACC_PUBLIC | Constants.ACC_STATIC);
            smeth.appendLoadLocal(0);
            BranchWrapper nonnull = smeth.appendIFNONNULL(smeth);
            smeth.appendACONST_NULL();
            smeth.appendReturn("java.lang.String");
            smeth.targetNext(nonnull);
            smeth.appendLoadLocal(0);
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

            smeth.appendLoadLocal(0);
            BranchWrapper nonnull = smeth.appendIFNONNULL(smeth);
            smeth.appendACONST_NULL();
            smeth.appendReturn("java.lang.String");
            smeth.targetNext(nonnull);
            smeth.appendLoadLocal(0);
            smeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            smeth.appendReturn("java.lang.String");
            bndclas.getUniqueNamed(smeth);
           
            // create the deserializer method
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

                (CUSTOM_ENUM_DESERIALIZER_NAME, dsersig, cf,
                Constants.ACC_PUBLIC | Constants.ACC_STATIC);
            dmeth.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
           
            // start by handling the null string case
            dmeth.appendLoadLocal(0);
            nonnull = dmeth.appendIFNONNULL(dmeth);
            dmeth.appendACONST_NULL();
            dmeth.appendReturn(type);
            dmeth.targetNext(nonnull);
           
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

                ClassItem.typeFromName("int"));
           
            // start comparison loop with check for off bottom of array
            BranchTarget start = dmeth.appendTargetNOP();
            dmeth.appendIncrementLocal(-1, arrayindex);
            dmeth.appendLoadLocal(arrayindex);
            BranchWrapper loadnext = dmeth.appendIFGE(dmeth);
           
            // throw an exception for value not found
            dmeth.appendCreateNew("java.lang.StringBuffer");
            dmeth.appendDUP();
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

            dmeth.appendCreateNew("java.lang.StringBuffer");
            dmeth.appendDUP();
            dmeth.appendLoadConstant("No match found for value '");
            dmeth.appendCallInit("java.lang.StringBuffer",
                "(Ljava/lang/String;)V");
            dmeth.appendLoadLocal(0);
            dmeth.appendCallVirtual("java.lang.StringBuffer.append",
                "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
            dmeth.appendLoadConstant("' in enum class " + type);
            dmeth.appendCallVirtual("java.lang.StringBuffer.append",
                "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

                MethodBuilder.EXCEPTION_CONSTRUCTOR_SIGNATURE1);
            dmeth.appendThrow();
           
            // load and compare the value
            dmeth.targetNext(loadnext);
            dmeth.appendLoadLocal(0);
            dmeth.appendLoadLocal(arraylocal);
            dmeth.appendLoadLocal(arrayindex);
            dmeth.appendALOAD(type);
            dmeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            dmeth.appendCallVirtual("java.lang.Object.equals",
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

            dmeth.appendThrow();
           
            // load and compare the value
            dmeth.targetNext(loadnext);
            dmeth.appendLoadLocal(0);
            dmeth.appendLoadLocal(arraylocal);
            dmeth.appendLoadLocal(arrayindex);
            dmeth.appendALOAD(type);
            dmeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            dmeth.appendCallVirtual("java.lang.Object.equals",
                "(Ljava/lang/Object;)Z");
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

           
            // load and compare the value
            dmeth.targetNext(loadnext);
            dmeth.appendLoadLocal(0);
            dmeth.appendLoadLocal(arraylocal);
            dmeth.appendLoadLocal(arrayindex);
            dmeth.appendALOAD(type);
            dmeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            dmeth.appendCallVirtual("java.lang.Object.equals",
                "(Ljava/lang/Object;)Z");
            BranchWrapper tonext = dmeth.appendIFEQ(dmeth);
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

                "(Ljava/lang/Object;)Z");
            BranchWrapper tonext = dmeth.appendIFEQ(dmeth);
            tonext.setTarget(start, dmeth);
           
            // return the matching instance
            dmeth.appendLoadLocal(arraylocal);
            dmeth.appendLoadLocal(arrayindex);
            dmeth.appendALOAD(type);
            dmeth.appendReturn(type);
           
            // add completed method to class
View Full Code Here

Examples of org.jibx.binding.classes.ExceptionMethodBuilder.appendLoadLocal()

            BranchWrapper tonext = dmeth.appendIFEQ(dmeth);
            tonext.setTarget(start, dmeth);
           
            // return the matching instance
            dmeth.appendLoadLocal(arraylocal);
            dmeth.appendLoadLocal(arrayindex);
            dmeth.appendALOAD(type);
            dmeth.appendReturn(type);
           
            // add completed method to class
            bndclas.getUniqueNamed(dmeth);
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.