Package org.jibx.binding.classes

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


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


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

    /**
     * Generate the {@link org.jibx.runtime.IMarshaller#marshal(Object,
View Full Code Here

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

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

        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

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.