Package com.facebook.presto.byteCode.control

Examples of com.facebook.presto.byteCode.control.TryCatch


                .comment("restore stack after exception")
                .getVariable("output")
                .comment("return dummy value for null")
                .pushJavaDefault(type.getJavaType());

        return new TryCatch(context, node.toString(), castFunction, catchBlock, type(Exception.class));
    }
View Full Code Here


                .comment("restore stack after exception")
                .getVariable("output")
                .comment("return dummy value for null")
                .pushJavaDefault(returnType.getJavaType());

        return new TryCatch(context, "TRY_CAST", castByteCode, catchBlock, type(Exception.class));
    }
View Full Code Here

                .invokeStatic(returnType.getClass(), "getInstance", returnType.getClass())
                .getVariable("output")
                .comment("return dummy value for null")
                .pushJavaDefault(returnType.getJavaType());

        return new TryCatch(context, "TRY_CAST", castByteCode, catchBlock, type(Exception.class));
    }
View Full Code Here

                .comment("restore stack after exception")
                .getVariable("output") // TODO: this is quite a strong assumption to make. This code should not be sensitive to whether "output" was on the stack before the call
                .comment("return dummy value for null")
                .pushJavaDefault(returnType.getJavaType());

        return new TryCatch(context, "TRY_CAST", castByteCode, catchBlock, type(Exception.class));
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.byteCode.control.TryCatch

Copyright © 2018 www.massapicom. 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.