org.objectweb.asm.tree

Class TryCatchBlockNode


public class TryCatchBlockNode
extends Object

A node that represents a try catch block.
Author:
Eric Bruneton

Field Summary

Label
end
End of the exception handler's scope (exclusive).
Label
handler
Beginning of the exception handler's code.
Label
start
Beginning of the exception handler's scope (inclusive).
String
type
Internal name of the type of exceptions handled by the handler.

Constructor Summary

TryCatchBlockNode(Label start, Label end, Label handler, String type)
Constructs a new TryCatchBlockNode object.

Method Summary

void
accept(CodeVisitor cv)
Makes the given code visitor visit this try catch block.

Field Details

end

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

handler

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

start

public Label 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 Details

TryCatchBlockNode

public TryCatchBlockNode(Label start,
                         Label end,
                         Label handler,
                         String type)
Constructs a new TryCatchBlockNode object.
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 Details

accept

public void accept(CodeVisitor cv)
Makes the given code visitor visit this try catch block.
Parameters:
cv - a code visitor.