Package org.objectweb.asm

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


        cv.visitFieldInsn(Constants.PUTFIELD, className, STACKFRAME_FIELD_NAME, I);
        cv.visitVarInsn(Constants.ALOAD, 2);
        cv.visitInsn(Constants.ATHROW);

        // handle the final try-finally clause
        cv.visitTryCatchBlock(labelData.startLabel, labelData.returnLabels[0], labelData.handlerLabel, null);
        for (int i = 1; i < labelData.switchCaseLabels.length; i++) {
            Label switchCaseLabel = labelData.switchCaseLabels[i];
            Label returnLabel = labelData.returnLabels[i];
            cv.visitTryCatchBlock(switchCaseLabel, returnLabel, labelData.handlerLabel, null);
        }
View Full Code Here


        // handle the final try-finally clause
        cv.visitTryCatchBlock(labelData.startLabel, labelData.returnLabels[0], labelData.handlerLabel, null);
        for (int i = 1; i < labelData.switchCaseLabels.length; i++) {
            Label switchCaseLabel = labelData.switchCaseLabels[i];
            Label returnLabel = labelData.returnLabels[i];
            cv.visitTryCatchBlock(switchCaseLabel, returnLabel, labelData.handlerLabel, null);
        }
        cv.visitTryCatchBlock(labelData.handlerLabel, labelData.endLabel, labelData.handlerLabel, null);

        cv.visitMaxs(0, 0);
    }
View Full Code Here

        for (int i = 1; i < labelData.switchCaseLabels.length; i++) {
            Label switchCaseLabel = labelData.switchCaseLabels[i];
            Label returnLabel = labelData.returnLabels[i];
            cv.visitTryCatchBlock(switchCaseLabel, returnLabel, labelData.handlerLabel, null);
        }
        cv.visitTryCatchBlock(labelData.handlerLabel, labelData.endLabel, labelData.handlerLabel, null);

        cv.visitMaxs(0, 0);
    }

    /**
 
View Full Code Here



        cv.visitInsn(RETURN);

        cv.visitTryCatchBlock(tryLabel, finallyLabel, catchLabel, CLASS_NOT_FOUND_EXCEPTION_CLASS_NAME);

        cv.visitMaxs(0, 0);

    }
View Full Code Here



        // set up the label table

        cv.visitTryCatchBlock(tryLabel, returnLabels[0], handlerLabel, null);

        for (int i = 1; i < caseLabels.length; i++) {

            Label caseLabel = caseLabels[i];
View Full Code Here

            Label caseLabel = caseLabels[i];

            Label returnLabel = returnLabels[i];

            cv.visitTryCatchBlock(caseLabel, returnLabel, handlerLabel, null);

        }

        cv.visitTryCatchBlock(defaultCaseLabel, gotoLabel, handlerLabel, null);
View Full Code Here

            cv.visitTryCatchBlock(caseLabel, returnLabel, handlerLabel, null);

        }

        cv.visitTryCatchBlock(defaultCaseLabel, gotoLabel, handlerLabel, null);

        cv.visitTryCatchBlock(handlerLabel, endLabel, handlerLabel, null);

        cv.visitMaxs(0, 0);
View Full Code Here

        }

        cv.visitTryCatchBlock(defaultCaseLabel, gotoLabel, handlerLabel, null);

        cv.visitTryCatchBlock(handlerLabel, endLabel, handlerLabel, null);

        cv.visitMaxs(0, 0);

    }
View Full Code Here

        for (int i = 0; i < m_aspectInfos.length; i++) {
            createAndInitializeAspectField(m_aspectInfos[i], cv);
        }

        cv.visitInsn(RETURN);
        cv.visitTryCatchBlock(tryLabel, finallyLabel, catchLabel, CLASS_NOT_FOUND_EXCEPTION_CLASS_NAME);
        cv.visitMaxs(0, 0);
    }

    /**
     * Add and initialize the static field for enclosing joint point static part
View Full Code Here

        cv.visitVarInsn(ALOAD, 2);
        cv.visitInsn(ATHROW);

        // set up the label table
        cv.visitTryCatchBlock(tryLabel, returnLabels[0], handlerLabel, null);
        for (int i = 1; i < caseLabels.length; i++) {
            Label caseLabel = caseLabels[i];
            Label returnLabel = returnLabels[i];
            cv.visitTryCatchBlock(caseLabel, returnLabel, handlerLabel, null);
        }
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.