Examples of appendReturn()


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

                }
            }
        }
       
        // finish by returning unmarshalled object reference
        mb.appendReturn("java.lang.Object");
        mb.codeComplete(false);
        mb.addMethod();
       
        // add interface if mapped class is directly unmarshallable
        if (hasname && m_class.getClassFile() == m_class.getMungedFile()) {
View Full Code Here

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

                mb.appendCallInterface(UNMARSHALLERPRESENT_METHOD,
                    UNMARSHALLERPRESENT_SIGNATURE);
                iffounds[i] = mb.appendIFNE(this);
            }
            mb.appendICONST_0();
            mb.appendReturn("int");
            mb.initStackState(iffounds[0]);
            BranchTarget found = mb.appendTargetLoadConstant(1);
            if (ifthis != null) {
                ifthis.setTarget(found, mb);
            }
View Full Code Here

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

           
            // mapping with no separate element name, just return "true"
            mb.appendICONST_1();
           
        }
        mb.appendReturn("int");
        mb.codeComplete(false);
        mb.addMethod();
    }

    /**
 
View Full Code Here

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

                }
            }
        }
       
        // finish with plain return
        mb.appendReturn();
        mb.codeComplete(false);
        mb.addMethod();
    }

    public void generateCode(boolean force) throws JiBXException {
View Full Code Here

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

        mb.targetNext(ifvalid);
        mb.loadObject();
        mb.loadContext();
        mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
            MARSHALLERMARSHAL_SIGNATURE);
        mb.appendReturn();
        mb.codeComplete(false);
        mb.addMethod();
       
        // add extended interface to constructed class
        cf.addInterface(ABSTRACTMARSHALLER_INTERFACE);
View Full Code Here

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

                    iffounds[i].setTarget(found, mb);
                }
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERUNMARSHAL_METHOD,
                    UNMARSHALLERUNMARSHAL_SIGNATURE);
                mb.appendReturn("java.lang.Object");
            }
           
            // fall into instance creation if this mapping reference
            if (ifthis != null) {
                mb.targetNext(ifthis);
View Full Code Here

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

      //  context as parameters
      mb.loadObject();
      mb.loadContext();
      mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
          MARSHALLERMARSHAL_SIGNATURE);
      mb.appendReturn();
     
      // add method to class
      clas.getUniqueNamed(mb);
     
      // generate and add get mapping name method
View Full Code Here

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

      //  context as parameters
      mb.loadObject();
      mb.loadContext();
      mb.appendCallInterface(UNMARSHALLERUNMARSHAL_METHOD,
          UNMARSHALLERUNMARSHAL_SIGNATURE);
      mb.appendReturn();
     
      // add the method to class
      clas.getUniqueNamed(mb);
       
        // generate and add get mapping name method
View Full Code Here

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

//                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.ContextMethodBuilder.appendReturn()

                0, UNMARSHALLING_CONTEXT);
            m_attributePresenceName = meth.getFullName();
           
            // generate the presence test code
            m_component.genAttrPresentTest(meth);
            meth.appendReturn(Type.BOOLEAN);
           
            // add method to class
            if (m_lockAttributePresence) {
                m_attributePresenceMethod =
                    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.