Examples of ifNullGoto()


Examples of com.facebook.swift.codec.internal.compiler.byteCode.MethodDefinition.ifNullGoto()

            // if field value is null, don't coerce or write the field
            if (!isFieldTypeJavaPrimitive(field)) {
                // ifNullGoto consumes the top of the stack, so we need to duplicate the value
                write.dup();
                write.ifNullGoto("field_is_null_" + field.getName());
            }

            // coerce value
            if (field.getCoercion() != null) {
                write.invokeStatic(field.getCoercion().getToThrift());
View Full Code Here

Examples of com.facebook.swift.codec.internal.compiler.byteCode.MethodDefinition.ifNullGoto()

                write.invokeStatic(field.getCoercion().getToThrift());

                // if coerced value is null, don't write the field
                if (!isProtocolTypeJavaPrimitive(field)) {
                    write.dup();
                    write.ifNullGoto("field_is_null_" + field.getName());
                }
            }

            // write value
            Method writeMethod = WRITE_METHODS.get(field.getType().getProtocolType());
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.