org.objectweb.asm.tree

Class TryCatchBlockNode

public class TryCatchBlockNode extends Object

A node that represents a try catch block.

Author: Eric Bruneton

Field Summary
LabelNodeend
End of the exception handler's scope (exclusive).
LabelNodehandler
Beginning of the exception handler's code.
LabelNodestart
Beginning of the exception handler's scope (inclusive).
Stringtype
Internal name of the type of exceptions handled by the handler.
Constructor Summary
TryCatchBlockNode(LabelNode start, LabelNode end, LabelNode handler, String type)
Constructs a new TryCatchBlockNode.
Method Summary
voidaccept(MethodVisitor mv)
Makes the given visitor visit this try catch block.

Field Detail

end

public LabelNode end
End of the exception handler's scope (exclusive).

handler

public LabelNode handler
Beginning of the exception handler's code.

start

public LabelNode start
Beginning of the exception handler's scope (inclusive).

type

public String type
Internal name of the type of exceptions handled by the handler. May be null to catch any exceptions (for "finally" blocks).

Constructor Detail

TryCatchBlockNode

public TryCatchBlockNode(LabelNode start, LabelNode end, LabelNode handler, String type)
Constructs a new TryCatchBlockNode.

Parameters: start beginning of the exception handler's scope (inclusive). end end of the exception handler's scope (exclusive). handler beginning of the exception handler's code. type internal name of the type of exceptions handled by the handler, or null to catch any exceptions (for "finally" blocks).

Method Detail

accept

public void accept(MethodVisitor mv)
Makes the given visitor visit this try catch block.

Parameters: mv a method visitor.