Examples of appendLoadConstant()


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

                        mb.appendLoadConstant(index);
                        mb.appendReturn(Type.INT);
                        mb.targetNext(onfail);
                    }
                }
                mb.appendLoadConstant(-1);
               
            } else {
               
                // use map constructed in initializer
                mb.appendLoadLocal(0);
View Full Code Here

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

               
            }
        } else {
           
            // no types to handle, just always return failure
            mb.appendLoadConstant(-1);
           
        }
        mb.appendReturn(Type.INT);
        mb.codeComplete(false);
        mb.addMethod();
View Full Code Here

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

        // build the method
        ExceptionMethodBuilder xb = new ExceptionMethodBuilder
            (CHECKEXTENDS_METHODNAME, CHECKEXTENDS_SIGNATURE, cf,
            Constants.ACC_PUBLIC|Constants.ACC_FINAL);
        xb.appendLoadLocal(1);
        xb.appendLoadConstant(getMappingName());
        xb.appendCallVirtual(EQUALS_METHODNAME, EQUALS_SIGNATURE);
        ArrayList ifmatches = new ArrayList();
        ifmatches.add(xb.appendIFNE(this));
        IMapping base = m_baseMapping;
        while (base != null) {
View Full Code Here

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

        ArrayList ifmatches = new ArrayList();
        ifmatches.add(xb.appendIFNE(this));
        IMapping base = m_baseMapping;
        while (base != null) {
            xb.appendLoadLocal(1);
            xb.appendLoadConstant(base.getMappingName());
            xb.appendCallVirtual(EQUALS_METHODNAME, EQUALS_SIGNATURE);
            ifmatches.add(xb.appendIFNE(this));
            if (base instanceof MappingDefinition) {
                base = ((MappingDefinition)base).m_baseMapping;
            } else {
View Full Code Here

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

        for (int i = 0; i < basecount; i++) {
            int[] table = (int[])m_baseNamespaceTables.get(i);
            if (table != null) {
                mb.appendDUP();
                mb.appendLoadConstant(i);
                mb.appendLoadConstant(buildIntsBlob(table));
                mb.appendAASTORE();
            }
        }
        for (int i = 0; i < m_closureNamespaceTables.size(); i++) {
            int[] table = (int[])m_closureNamespaceTables.get(i);
View Full Code Here

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

            }
        }
        for (int i = 0; i < m_closureNamespaceTables.size(); i++) {
            int[] table = (int[])m_closureNamespaceTables.get(i);
            mb.appendDUP();
            mb.appendLoadConstant(i+basecount);
            mb.appendLoadConstant(buildIntsBlob(table));
            mb.appendAASTORE();
        }
       
        // call the base class constructor
View Full Code Here

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

        }
        for (int i = 0; i < m_closureNamespaceTables.size(); i++) {
            int[] table = (int[])m_closureNamespaceTables.get(i);
            mb.appendDUP();
            mb.appendLoadConstant(i+basecount);
            mb.appendLoadConstant(buildIntsBlob(table));
            mb.appendAASTORE();
        }
       
        // call the base class constructor
        mb.appendCallInit(FACTORY_BASE,
View Full Code Here

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

           
            // initialize with appropriate size
            mb.appendLoadLocal(0);
            mb.appendCreateNew(STRINGINT_MAPTYPE);
            mb.appendDUP();
            mb.appendLoadConstant(tnames.size());
            mb.appendCallInit(STRINGINT_MAPTYPE, STRINGINTINIT_SIGNATURE);
           
            // add all values to map
            for (int i = 0; i < tnames.size(); i++) {
                int index = s_mappedClasses.find(tnames.get(i));
View Full Code Here

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

            // add all values to map
            for (int i = 0; i < tnames.size(); i++) {
                int index = s_mappedClasses.find(tnames.get(i));
                if (index >= 0) {
                    mb.appendDUP();
                    mb.appendLoadConstant((String)tnames.get(i));
                    mb.appendLoadConstant(index);
                    mb.appendCallVirtual(STRINGINTADD_METHOD,
                        STRINGINTADD_SIGNATURE);
                    mb.appendPOP();
                }
View Full Code Here

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

            for (int i = 0; i < tnames.size(); i++) {
                int index = s_mappedClasses.find(tnames.get(i));
                if (index >= 0) {
                    mb.appendDUP();
                    mb.appendLoadConstant((String)tnames.get(i));
                    mb.appendLoadConstant(index);
                    mb.appendCallVirtual(STRINGINTADD_METHOD,
                        STRINGINTADD_SIGNATURE);
                    mb.appendPOP();
                }
            }
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.