Examples of appendLoadConstant()


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

            BranchWrapper[] iffounds =
                new BranchWrapper[m_extensions.size()];
            for (int i = 0; i < iffounds.length; i++) {
                IMapping map = (IMapping)m_extensions.get(i);
                mb.loadContext();
                mb.appendLoadConstant(map.getMappingName());
                mb.appendCallInterface(GETUNMARSHALLER_METHOD,
                    GETUNMARSHALLER_SIGNATURE);
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERPRESENT_METHOD,
                    UNMARSHALLERPRESENT_SIGNATURE);
View Full Code Here

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

        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()) {
                    mb.loadContext(MARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    mb.appendLoadConstant(map.getMarshaller().getName());
                    mb.appendCallVirtual(ADDMARSHALLER_METHOD,
                        ADDMARSHALLER_SIGNATURE);
                }
            }
View Full Code Here

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

            for (int i = 0; i < maps.size(); i++) {
                IMapping map = (IMapping)maps.get(i);
                if (!map.isAbstract() || map.isBase()) {
                    mb.loadContext(MARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    mb.appendLoadConstant(map.getMarshaller().getName());
                    mb.appendCallVirtual(ADDMARSHALLER_METHOD,
                        ADDMARSHALLER_SIGNATURE);
                }
            }
        }
View Full Code Here

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

        }
        if (hasattr || hascont) {
           
            // start by pushing namespace translation for precompiled binding
            mb.loadContext();
            mb.appendLoadConstant(m_container.getBindingRoot().getFactoryName());
            mb.appendCallInterface(PUSH_NAMESPACES_METHOD,
                PUSH_NAMESPACES_SIG);
           
            // handle the actual marshalling
            mb.loadObject(m_class.getClassName());
View Full Code Here

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

        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()) {
                    mb.loadContext(MARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    mb.appendCallVirtual(REMOVEMARSHALLER_METHOD,
                        REMOVEMARSHALLER_SIGNATURE);
                }
            }
        }
View Full Code Here

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

        mb.appendCallVirtual("java.lang.Object.getClass",
            "()Ljava/lang/Class;");
        mb.appendCallVirtual("java.lang.Class.getName", "()Ljava/lang/String;");
        mb.appendCallInterface(GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE);
        mb.appendDUP();
        mb.appendLoadConstant(getMappingName());
        mb.appendCallInterface(CHECKEXTENDS_FULLNAME, CHECKEXTENDS_SIGNATURE);
        BranchWrapper ifvalid = mb.appendIFNE(this);
        
        // generate and throw exception describing the problem
        mb.appendCreateNew("java.lang.StringBuffer");
View Full Code Here

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

        BranchWrapper ifvalid = mb.appendIFNE(this);
        
        // generate and throw exception describing the problem
        mb.appendCreateNew("java.lang.StringBuffer");
        mb.appendDUP();
        mb.appendLoadConstant("Mapping for type ");
        mb.appendCallInit("java.lang.StringBuffer", "(Ljava/lang/String;)V");
        mb.appendDUP();
        mb.loadObject();
        mb.appendCallVirtual("java.lang.Object.getClass",
            "()Ljava/lang/Class;");
View Full Code Here

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

            "()Ljava/lang/Class;");
        mb.appendCallVirtual("java.lang.Class.getName", "()Ljava/lang/String;");
        mb.appendCallVirtual("java.lang.StringBuffer.append",
            "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
        mb.appendDUP();
        mb.appendLoadConstant(" must extend abstract mapping for " +
            "type " + m_class.getClassName());
        mb.appendCallVirtual("java.lang.StringBuffer.append",
            "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
        mb.appendCallVirtual("java.lang.StringBuffer.toString",
            "()Ljava/lang/String;");
View Full Code Here

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

            BranchWrapper[] iffounds =
                new BranchWrapper[m_extensions.size()];
            for (int i = 0; i < iffounds.length; i++) {
                IMapping map = (IMapping)m_extensions.get(i);
                mb.loadContext();
                mb.appendLoadConstant(map.getMappingName());
                mb.appendCallInterface(GETUNMARSHALLER_METHOD,
                    GETUNMARSHALLER_SIGNATURE);
                mb.appendDUP();
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERPRESENT_METHOD,
View Full Code Here

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

           
            // generate code to throw exception if no matching extension
            //  found
            mb.appendCreateNew("java.lang.StringBuffer");
            mb.appendDUP();
            mb.appendLoadConstant("Element ");
            mb.appendCallInit("java.lang.StringBuffer",
                "(Ljava/lang/String;)V");
            mb.appendDUP();
            mb.loadContext(UNMARSHALCONTEXT_CLASS);
            mb.appendCallVirtual(CURRENTELEMENT_METHOD,
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.