Examples of appendACONST_NULL()


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

           
        }
        if (hasname) {
           
            // just create an instance of the (non-abstract) mapped class
            mb.appendACONST_NULL();
            genNewInstance(mb);
            mb.storeObject();
           
        }
       
View Full Code Here

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

                if (!map.isAbstract() || map.isBase()) {
                    mb.loadContext(UNMARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    NameDefinition mname = map.getName();
                    if (mname == null) {
                        mb.appendACONST_NULL();
                        mb.appendACONST_NULL();
                    } else {
                        map.getName().genPushUriPair(mb);
                    }
                    mb.appendLoadConstant(map.getUnmarshaller().getName());
View Full Code Here

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

                    mb.loadContext(UNMARSHALCONTEXT_CLASS);
                    mb.appendLoadConstant(map.getMappingName());
                    NameDefinition mname = map.getName();
                    if (mname == null) {
                        mb.appendACONST_NULL();
                        mb.appendACONST_NULL();
                    } else {
                        map.getName().genPushUriPair(mb);
                    }
                    mb.appendLoadConstant(map.getUnmarshaller().getName());
                    mb.appendCallVirtual(ADDUNMARSHALLER_METHOD,
View Full Code Here

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

            ExceptionMethodBuilder smeth = new ExceptionMethodBuilder
                (CUSTOM_ENUM_SERIALIZER_NAME, sersig, cf,
                Constants.ACC_PUBLIC | Constants.ACC_STATIC);
            smeth.appendLoadLocal(0);
            BranchWrapper nonnull = smeth.appendIFNONNULL(smeth);
            smeth.appendACONST_NULL();
            smeth.appendReturn("java.lang.String");
            smeth.targetNext(nonnull);
            smeth.appendLoadLocal(0);
            smeth.appendCallVirtual(evfull, "()Ljava/lang/String;");
            smeth.appendReturn("java.lang.String");
View Full Code Here

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

            dmeth.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
           
            // start by handling the null string case
            dmeth.appendLoadLocal(0);
            nonnull = dmeth.appendIFNONNULL(dmeth);
            dmeth.appendACONST_NULL();
            dmeth.appendReturn(type);
            dmeth.targetNext(nonnull);
           
            // set up locals for array of values and decrementing index
            dmeth.appendCallStatic(type + ".values", "()[" + typesig);
View Full Code Here

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

       
        // add private method to return binding classes blob (replaced later)
        MethodBuilder mb = new ExceptionMethodBuilder(CLASSLIST_METHOD_NAME,
            Type.STRING, new Type[0], cf,
            Constants.ACC_PRIVATE|Constants.ACC_STATIC);
        mb.appendACONST_NULL();
        mb.appendReturn(Type.STRING);
        mb.codeComplete(false);
        ClassItem clasblobmeth = mb.addMethod();
       
        // add the private constructor method
View Full Code Here

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

            for (int i = count; i < mcnt; i++) {
                names[i] = (String)m_extraUnmarshallers.get(i-count);
            }
            codegenString(buildClassNamesBlob(names), mb);
        } else {
            mb.appendACONST_NULL();
        }
       
        // create argument blob of marshaller class names
        if (m_isOutput) {
            for (int i = 0; i < count; i++) {
View Full Code Here

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

            for (int i = count; i < mcnt; i++) {
                names[i] = (String)m_extraMarshallers.get(i-count);
            }
            codegenString(buildClassNamesBlob(names), mb);
        } else {
            mb.appendACONST_NULL();
        }
       
        // create argument array of namespace URIs
        String[] nsuris = new String[m_namespaceUris.size()];
        mb.appendLoadConstant(m_namespaceUris.size());
View Full Code Here

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

                mb.appendLoadConstant(i);
                mb.appendLoadConstant((String)m_namespacePrefixes.get(i));
                mb.appendAASTORE();
            }
        } else {
            mb.appendACONST_NULL();
        }
       
        // create argument blobs of globally mapped element names and URIs
        names = new String[count];
        String[] namespaces = new String[count];
View Full Code Here

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

                mb.appendLoadConstant(i);
                mb.appendLoadConstant((String)m_uniqueIds.get(i));
                mb.appendAASTORE();
            }
        } else {
            mb.appendACONST_NULL();
        }
       
        // create argument blobs of abstract mapping information
        GrowableStringArray allnames = new GrowableStringArray();
        int abmapcnt = 0;
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.