Examples of loadContext()


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

        mb.appendThrow();
        
        // for valid extension mapping, just call the marshaller
        mb.targetNext(ifvalid);
        mb.loadObject();
        mb.loadContext();
        mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
            MARSHALLERMARSHAL_SIGNATURE);
        mb.appendReturn();
        mb.codeComplete(false);
        mb.addMethod();
View Full Code Here

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

            BranchWrapper ifthis = null;
            if (hasname) {
               
                // test if at defined element name
                mb.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
                mb.loadContext();
                m_name.genPushUriPair(mb);
                mb.appendCallInterface(UNMARSHAL_ISATMETHOD,
                    UNMARSHAL_ISATSIGNATURE);
                ifthis = mb.appendIFNE(this);
            }
View Full Code Here

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

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

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

                mb.loadContext();
                mb.appendLoadConstant(map.getMappingName());
                mb.appendCallInterface(GETUNMARSHALLER_METHOD,
                    GETUNMARSHALLER_SIGNATURE);
                mb.appendDUP();
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERPRESENT_METHOD,
                    UNMARSHALLERPRESENT_SIGNATURE);
                iffounds[i] = mb.appendIFNE(this);
                mb.appendPOP();
            }
View Full Code Here

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

            mb.appendDUP();
            mb.appendLoadConstant("Element ");
            mb.appendCallInit("java.lang.StringBuffer",
                "(Ljava/lang/String;)V");
            mb.appendDUP();
            mb.loadContext(UNMARSHALCONTEXT_CLASS);
            mb.appendCallVirtual(CURRENTELEMENT_METHOD,
                CURRENTELEMENT_SIGNATURE);
            mb.appendCallVirtual("java.lang.StringBuffer.append",
                "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
            mb.appendDUP();
View Full Code Here

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

                mb.initStackState(iffounds[0]);
                BranchTarget found = mb.appendTargetACONST_NULL();
                for (int i = 0; i < iffounds.length; i++) {
                    iffounds[i].setTarget(found, mb);
                }
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERUNMARSHAL_METHOD,
                    UNMARSHALLERUNMARSHAL_SIGNATURE);
                mb.appendReturn("java.lang.Object");
            }
           
View Full Code Here

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

        ArrayList maps = m_defContext.getMappings();
        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(UNMARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    NameDefinition mname = map.getName();
                    if (mname == null) {
                        mb.appendACONST_NULL();
                        mb.appendACONST_NULL();
View Full Code Here

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

        // handle the actual unmarshalling
        if (hasattr) {
            m_component.genAttributeUnmarshal(mb);
        }
        if (hasattr || !hasname) {
            mb.loadContext(UNMARSHALCONTEXT_CLASS);
            mb.appendCallVirtual(PARSERNEXT_METHOD,
                PARSERNEXT_SIGNATURE);
            mb.appendPOP();
        }
        if (hascont) {
View Full Code Here

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

        // undefine unmarshallings for child mappings of this mapping
        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(UNMARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    mb.appendCallVirtual(REMOVEUNMARSHALLER_METHOD,
                        REMOVEUNMARSHALLER_SIGNATURE);
                }
            }
View Full Code Here

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

          (MARSHALLABLE_METHODNAME, MARSHALLABLE_SIGNATURE, cf,
          Constants.ACC_PUBLIC, 0, clas.getClassFile().getName(),
          1, MARSHALLER_INTERFACE);
     
      // create call to marshalling context method with class name
      mb.loadContext();
      mb.appendLoadConstant(cf.getName());
      mb.appendCallInterface(GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE);
     
      // call the returned marshaller with this object and the marshalling
      //  context as parameters
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.