Package org.objectweb.asm

Examples of org.objectweb.asm.MethodVisitor.visitTryCatchBlock()


    v.visitCode();

    // support try{ get(); } finally { unget(); } model
    v.visitTryCatchBlock(start, ungetR, catchX, null);
    v.visitTryCatchBlock(ungetR, finalR, finalR, EXCEPTION_NAME);
    v.visitTryCatchBlock(ungetX, finalX, finalX, EXCEPTION_NAME);

    // store handle as "this"
    v.visitVarInsn(ALOAD, 0);
    v.visitFieldInsn(GETFIELD, proxyName, PROXY_HANDLE, IMPORT_DESC);
    v.visitInsn(DUP);
View Full Code Here


    MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, method.getName(), desc.toString(), null, null);
    mv.visitCode();
    Label l0 = new Label();
    Label l1 = new Label();
    Label l2 = new Label();
    mv.visitTryCatchBlock(l0, l1, l2, "java/lang/Exception");
    Label l3 = new Label();
    mv.visitTryCatchBlock(l0, l1, l3, "java/lang/NoClassDefFoundError");
    Label l4 = new Label();
    mv.visitLabel(l4);
    mv.visitLineNumber(lineAddition + 1, l4);
View Full Code Here

    Label l0 = new Label();
    Label l1 = new Label();
    Label l2 = new Label();
    mv.visitTryCatchBlock(l0, l1, l2, "java/lang/Exception");
    Label l3 = new Label();
    mv.visitTryCatchBlock(l0, l1, l3, "java/lang/NoClassDefFoundError");
    Label l4 = new Label();
    mv.visitLabel(l4);
    mv.visitLineNumber(lineAddition + 1, l4);
    mv.visitVarInsn(ALOAD, 0);
    if(method.isAnnotationPresent(IgnoreDisabledProxy.class) || !normalResult) {
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.