Class BytecodeTryCatchBlock
- java.lang.Object
-
- org.eolang.jeo.representation.bytecode.BytecodeTryCatchBlock
-
- All Implemented Interfaces:
BytecodeEntry
,Testable
public final class BytecodeTryCatchBlock extends Object implements BytecodeEntry
Bytecode try-catch block.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description BytecodeTryCatchBlock(org.objectweb.asm.Label startlabel, org.objectweb.asm.Label endlabel, org.objectweb.asm.Label handlerlabel, String exception)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
testCode()
Generate test Java code.void
writeTo(org.objectweb.asm.MethodVisitor visitor)
Write instruction to the method visitor.
-
-
-
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 interfaceBytecodeEntry
- Parameters:
visitor
- Method visitor.
-
-