Examples of appendReturn()


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

        // add private method to return binding classes blob (replaced later)
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], cf,
            Constants.ACC_PRIVATE|Constants.ACC_STATIC);
        mb.appendACONST_NULL();
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        ClassItem clasblobmeth = mb.addMethod();
       
        // add the private constructor method
        mb = new ExceptionMethodBuilder("<init>", Type.VOID, new Type[0], cf,
View Full Code Here

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

            mb.appendLoadLocal(2);
            mb.appendPutField(srcline);
            mb.appendLoadLocal(0);
            mb.appendLoadLocal(3);
            mb.appendPutField(srccol);
            mb.appendReturn();
            mb.codeComplete(false);
            mb.addMethod();
       
            // add methods for getting the source information
            mb = new ExceptionMethodBuilder(SOURCENAME_METHODNAME,
View Full Code Here

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

            // add methods for getting the source information
            mb = new ExceptionMethodBuilder(SOURCENAME_METHODNAME,
                Type.STRING, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
            mb.appendGetField(srcname);
            mb.appendReturn(Type.STRING);
            mb.codeComplete(false);
            mb.addMethod();
            mb = new ExceptionMethodBuilder(SOURCELINE_METHODNAME,
                Type.INT, EMPTY_ARGS, cf, Constants.ACC_PUBLIC);
            mb.appendLoadLocal(0);
View Full Code Here

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

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

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

                genUserMethodCall(true, m_postSetMethod, meth);
            }
           
            // finish by returning object
            meth.loadObject();
            meth.appendReturn(m_class.getClassFile().getName());
           
            // add method to class
            if (m_lockAttributeUnmarshal) {
                m_unmarshalAttributeMethod =
                    m_class.getUniqueNamed(meth).getItem();
View Full Code Here

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

                genUserMethodCall(true, m_postSetMethod, meth);
            }
           
            // finish by returning object
            meth.loadObject();
            meth.appendReturn(m_class.getClassFile().getName());
           
            // add method to class
            if (m_lockContentUnmarshal) {
                m_unmarshalContentMethod =
                    m_class.getUniqueNamed(meth).getItem();
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.