Examples of appendIFNE()


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

        if (m_extensions != null) {
           
            // return immediately if this mapping name check successful
            BranchWrapper ifthis = null;
            if (hasname) {
                ifthis = mb.appendIFNE(this);
            }
           
            // build code to check each extension mapping in turn;
            //  return "true" if one matches, or "false" if none do
            mb.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
View Full Code Here

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

                mb.appendCallInterface(GETUNMARSHALLER_METHOD,
                    GETUNMARSHALLER_SIGNATURE);
                mb.loadContext();
                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);
View Full Code Here

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

        mb.appendCallVirtual("java.lang.Class.getName", "()Ljava/lang/String;");
        mb.appendCallInterface(GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE);
        mb.appendDUP();
        mb.appendLoadConstant(getMappingName());
        mb.appendCallInterface(CHECKEXTENDS_FULLNAME, CHECKEXTENDS_SIGNATURE);
        BranchWrapper ifvalid = mb.appendIFNE(this);
        
        // generate and throw exception describing the problem
        mb.appendCreateNew("java.lang.StringBuffer");
        mb.appendDUP();
        mb.appendLoadConstant("Mapping for type ");
View Full Code Here

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

                mb.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
                mb.loadContext();
                m_name.genPushUriPair(mb);
                mb.appendCallInterface(UNMARSHAL_ISATMETHOD,
                    UNMARSHAL_ISATSIGNATURE);
                ifthis = mb.appendIFNE(this);
            }
           
            // build code to check each extension mapping in turn,
            //  keeping an instance of the unmarshaller for the matching
            //  extension
View Full Code Here

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

                    GETUNMARSHALLER_SIGNATURE);
                mb.appendDUP();
                mb.loadContext();
                mb.appendCallInterface(UNMARSHALLERPRESENT_METHOD,
                    UNMARSHALLERPRESENT_SIGNATURE);
                iffounds[i] = mb.appendIFNE(this);
                mb.appendPOP();
            }
           
            // generate code to throw exception if no matching extension
            //  found
View Full Code Here

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

            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) {
            xb.appendLoadLocal(1);
            xb.appendLoadConstant(base.getMappingName());
            xb.appendCallVirtual(EQUALS_METHODNAME, EQUALS_SIGNATURE);
View Full Code Here

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

        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 {
                break;
            }
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.