Package org.jibx.binding.classes

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


                } else if (m_createClass.isInterface() ||
                    m_createClass.isAbstract()) {
                   
                    // cannot create instance, throw exception
                    mb.appendCreateNew(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
                    mb.appendDUP();
                    mb.appendLoadConstant("Cannot create instance of interface or abstract class " +
                        m_createClass.getName());
                    mb.appendCallInit(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS,
                        MethodBuilder.EXCEPTION_CONSTRUCTOR_SIGNATURE1);
                    mb.appendThrow();
View Full Code Here


                            m_createClass.addDefaultConstructor();
                        } else {
                           
                            // cannot create instance, throw exception
                            mb.appendCreateNew(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
                            mb.appendDUP();
                            mb.appendLoadConstant("Cannot create instance of class " +
                                m_createClass.getName() + " (no default constructor)");
                            mb.appendCallInit(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS,
                                MethodBuilder.EXCEPTION_CONSTRUCTOR_SIGNATURE1);
                            mb.appendThrow();
View Full Code Here

                    if (haveobj) {
                       
                        // no factory, so create an instance, duplicate the
                        //  reference, and then call the null constructor
                        mb.appendCreateNew(m_createClass.getName());
                        mb.appendDUP();
                        mb.appendCallInit(m_createClass.getName(),"()V");
                       
                    }
                }
               
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.