Examples of targetNext()


Examples of org.jibx.binding.classes.ContextMethodBuilder.targetNext()

        mb.appendCallInit(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS,
            MethodBuilder.EXCEPTION_CONSTRUCTOR_SIGNATURE1);
        mb.appendThrow();
        
        // for valid extension mapping, just call the marshaller
        mb.targetNext(ifvalid);
        mb.loadObject();
        mb.loadContext();
        mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
            MARSHALLERMARSHAL_SIGNATURE);
        mb.appendReturn();
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.targetNext()

                mb.appendReturn("java.lang.Object");
            }
           
            // fall into instance creation if this mapping reference
            if (ifthis != null) {
                mb.targetNext(ifthis);
            }
           
        } else if (m_isAbstract) {
           
            // throw an exception when no instance supplied
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.targetNext()

            mb.storeObject();
           
        }
       
        // define unmarshallings for child mappings of this mapping
        mb.targetNext(ifnnull);
        ArrayList maps = m_defContext.getMappings();
        if (maps != null && maps.size() > 0) {
            for (int i = 0; i < maps.size(); i++) {
                IMapping map = (IMapping)maps.get(i);
                if (!map.isAbstract() || map.isBase()) {
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.targetNext()

            if (haveobj) {
                mb.storeObject();
            }
           
            // if preset method supplied add code to call it
            mb.targetNext(haveinst);
//            ** disable for now; can't take out of unmarshal methods, since
//            create not always called **
//            if (m_preSetMethod != null) {
//                genUserMethodCall(true, m_preSetMethod, mb);
//            }
View Full Code Here

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

                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);
            smeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            smeth.appendReturn("java.lang.String");
            bndclas.getUniqueNamed(smeth);
           
View Full Code Here

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

            // start by handling the null string case
            dmeth.appendLoadLocal(0);
            nonnull = dmeth.appendIFNONNULL(dmeth);
            dmeth.appendACONST_NULL();
            dmeth.appendReturn(type);
            dmeth.targetNext(nonnull);
           
            // set up locals for array of values and decrementing index
            dmeth.appendCallStatic(type + ".values", "()[" + typesig);
            dmeth.appendDUP();
            int arraylocal = dmeth.addLocal("values",
View Full Code Here

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

            dmeth.appendCallInit(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS,
                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;");
View Full Code Here

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

                        mb.appendCallVirtual("java.lang.String.equals",
                            "(Ljava/lang/Object;)Z");
                        BranchWrapper onfail = mb.appendIFEQ(this);
                        mb.appendLoadConstant(index);
                        mb.appendReturn(Type.INT);
                        mb.targetNext(onfail);
                    }
                }
                mb.appendLoadConstant(-1);
               
            } else {
View Full Code Here

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

        BranchWrapper ifdone = mb.appendIFNONNULL(this);
        mb.appendCreateNew(cf.getName());
        mb.appendDUP();
        mb.appendCallInit(cf.getName(), "()V");
        mb.appendPutStatic(inst);
        mb.targetNext(ifdone);
        mb.appendGetStatic(inst);
        mb.appendReturn(FACTORY_INTERFACE);
        mb.codeComplete(false);
        mb.addMethod();
       
View Full Code Here

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

            }
        }
        xb.appendICONST_0();
        xb.appendReturn("int");
        for (int i = 0; i < ifmatches.size(); i++) {
            xb.targetNext((BranchWrapper)ifmatches.get(i));
        }
        xb.appendICONST_1();
        xb.appendReturn("int");
        xb.codeComplete(false);
        xb.addMethod();
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.