Class BytecodeTryCatchBlock

    • Constructor Detail

      • BytecodeTryCatchBlock

        public BytecodeTryCatchBlock​(org.objectweb.asm.Label startlabel,
                                     org.objectweb.asm.Label endlabel,
                                     org.objectweb.asm.Label handlerlabel,
                                     String exception)
        Constructor.
        Parameters:
        startlabel - Start label.
        endlabel - End label.
        handlerlabel - Handler label.
        exception - Exception type.
    • Method Detail

      • writeTo

        public void writeTo​(org.objectweb.asm.MethodVisitor visitor)
        Description copied from interface: BytecodeEntry
        Write instruction to the method visitor.
        Specified by:
        writeTo in interface BytecodeEntry
        Parameters:
        visitor - Method visitor.
      • testCode

        public String testCode()
        Description copied from interface: Testable
        Generate test Java code.
        Specified by:
        testCode in interface Testable
        Returns:
        Java code.