Examples of appendReturn()


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

            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCECOLUMN_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
            mb.appendGetField(srccol);
            mb.appendReturn("int");
            mb.codeComplete(false);
            mb.addMethod();
        }
    }
   
View Full Code Here

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

            meth.loadContext();
            meth.appendCallVirtual(MARSHAL_POPOBJECTMETHOD,
                POPOBJECT_SIGNATURE);
           
            // finish and add constructed method to class
            meth.appendReturn();
            if (m_lockAttributeMarshal) {
                m_marshalAttributeMethod =
                    m_class.getUniqueNamed(meth).getItem();
            } else {
                m_marshalAttributeMethod =
View Full Code Here

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

            meth.loadContext();
            meth.appendCallVirtual(MARSHAL_POPOBJECTMETHOD,
                POPOBJECT_SIGNATURE);
           
            // finish and add constructed method to class
            meth.appendReturn();
            if (m_lockContentMarshal) {
                m_marshalContentMethod =
                    m_class.getUniqueNamed(meth).getItem();
            } else {
                m_marshalContentMethod =
View Full Code Here

Examples of org.jibx.binding.classes.MethodBuilder.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.MethodBuilder.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.MethodBuilder.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.MethodBuilder.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.MethodBuilder.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

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

        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();
       
        // add factory class to generated registry
        cf.codeComplete();
View Full Code Here

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

            CLASSLIST_METHOD_SIGNATURE);
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], m_factoryClass,
            Constants.ACC_PRIVATE|Constants.ACC_STATIC);
        codegenString(buildClassNamesBlob(refs), mb);
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        mb.addMethod();
        m_factoryClass.codeComplete();
    }
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.