Examples of appendReturn()


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

            if (m_fakeContent) {
                meth.appendLoadConstant(1);
            } else {
                m_component.genContentPresentTest(meth);
            }
            meth.appendReturn(Type.BOOLEAN);
           
            // add method to class
            if (m_lockContentPresence) {
                m_contentPresenceMethod =
                    m_class.getUniqueNamed(meth).getItem();
View Full Code Here

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

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

            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
            ExceptionMethodBuilder dmeth = new ExceptionMethodBuilder
                (CUSTOM_ENUM_DESERIALIZER_NAME, dsersig, cf,
View Full Code Here

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

           
            // 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();
View Full Code Here

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

           
            // 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

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

            }
            mb.appendPutField(tmap);
        }
       
        // finish with return from constructor
        mb.appendReturn();
        mb.codeComplete(false);
        mb.addMethod();
       
        // add the compiler version access method
        mb = new ExceptionMethodBuilder(GETVERSION_METHODNAME,
View Full Code Here

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

       
        // add the compiler version access method
        mb = new ExceptionMethodBuilder(GETVERSION_METHODNAME,
            Type.INT, new Type[0], cf, Constants.ACC_PUBLIC);
        mb.appendLoadConstant(IBindingFactory.CURRENT_VERSION_NUMBER);
        mb.appendReturn("int");
        mb.codeComplete(false);
        mb.addMethod();
       
        // add the compiler distribution access method
        mb = new ExceptionMethodBuilder(GETDISTRIB_METHODNAME,
View Full Code Here

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

       
        // add the compiler distribution access method
        mb = new ExceptionMethodBuilder(GETDISTRIB_METHODNAME,
            Type.STRING, new Type[0], cf, Constants.ACC_PUBLIC);
        mb.appendLoadConstant(CURRENT_VERSION_NAME);
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        mb.addMethod();
       
        // add the type mapping index lookup method
        mb = new ExceptionMethodBuilder(GETTYPEINDEX_METHODNAME,
View Full Code Here

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

                        mb.appendLoadConstant((String)tnames.get(i));
                        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);
               
View Full Code Here

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

           
            // no types to handle, just always return failure
            mb.appendLoadConstant(-1);
           
        }
        mb.appendReturn(Type.INT);
        mb.codeComplete(false);
        mb.addMethod();
       
        // finish with instance creation method
        mb = new ExceptionMethodBuilder(GETINST_METHODNAME,
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.