Examples of loadObject()


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

                }
            }
        }
       
        // load object and cast to type
        mb.loadObject();
        mb.appendCreateCast(type);
       
        // handle the actual unmarshalling
        if (hasattr) {
            m_component.genAttributeUnmarshal(mb);
View Full Code Here

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

      mb.appendLoadConstant(cf.getName());
      mb.appendCallInterface(GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE);
     
      // call the returned marshaller with this object and the marshalling
      //  context as parameters
      mb.loadObject();
      mb.loadContext();
      mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
          MARSHALLERMARSHAL_SIGNATURE);
      mb.appendReturn();
     
View Full Code Here

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

      mb.appendCallInterface(GETUNMARSHALLER_METHOD,
          GETUNMARSHALLER_SIGNATURE);
     
      // call the returned unmarshaller with this object and the unmarshalling
      //  context as parameters
      mb.loadObject();
      mb.loadContext();
      mb.appendCallInterface(UNMARSHALLERUNMARSHAL_METHOD,
          UNMARSHALLERUNMARSHAL_SIGNATURE);
      mb.appendReturn();
     
View Full Code Here

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

                new Type[] {type, UNMARSHALCONTEXT_TYPE}, cf,
                Constants.ACC_PUBLIC|Constants.ACC_STATIC, 0,
                m_class.getClassName(), 1, UNMARSHALLING_CONTEXT);
           
            // check if actually need to create a new instance
            mb.loadObject();
            BranchWrapper haveinst = mb.appendIFNONNULL(this);
           
            // check for factory supplied to create instance
            boolean haveobj = true;
            if (m_factoryMethod == null) {
View Full Code Here

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

//            if (m_preSetMethod != null) {
//                genUserMethodCall(true, m_preSetMethod, mb);
//            }
           
            // finish method code with return of new instance
            mb.loadObject();
            mb.appendReturn(m_class.getClassName());
            m_newInstanceMethod = m_class.getUniqueMethod(mb).getItem();
        }
    }
View Full Code Here

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

                genUserMethodCall(false, m_preGetMethod, meth);
            }
           
            // push object being marshalled to marshaller stack
            meth.loadContext();
            meth.loadObject();
            meth.appendCallVirtual(MARSHAL_PUSHOBJECTMETHOD,
                PUSHOBJECT_SIGNATURE);
           
            // generate actual marshalling code
            meth.loadContext();
View Full Code Here

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

                genUserMethodCall(false, m_preGetMethod, meth);
            }
           
            // push object being marshalled to marshaller stack
            meth.loadContext();
            meth.loadObject();
            meth.appendCallVirtual(MARSHAL_PUSHOBJECTMETHOD,
                PUSHOBJECT_SIGNATURE);
           
            // generate actual marshalling code
            meth.loadContext();
View Full Code Here

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

            if (m_postSetMethod != null && !hasContent()) {
                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 =
View Full Code Here

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

            m_unmarshalContentName = meth.getFullName();
            m_unmarshalSignature = meth.getSignature();
           
            // if preset method supplied add code to call it
            if (!hasAttribute() && m_preSetMethod != null) {
                meth.loadObject();
                genUserMethodCall(true, m_preSetMethod, meth);
            }
           
            // push object being unmarshalled to unmarshaller stack
            meth.loadContext();
View Full Code Here

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

                genUserMethodCall(true, m_preSetMethod, meth);
            }
           
            // push object being unmarshalled to unmarshaller stack
            meth.loadContext();
            meth.loadObject();
            String mname = hasAttribute() ? UNMARSHAL_PUSHOBJECTMETHOD :
                UNMARSHAL_PUSHTRACKEDOBJECTMETHOD;
            meth.appendCallVirtual(mname, PUSHOBJECT_SIGNATURE);
           
            // generate the actual unmarshalling code in 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.