Top Description Fields Constructors Methods
org.objectweb.asm.tree

public Class TryCatchBlockNode

extends Object
Class Inheritance
Imports
java.util.List, org.objectweb.asm.MethodVisitor

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

Field Summary

Modifier and TypeField and Description
public LabelNode
end

The end of the exception handler's scope (exclusive).

public LabelNode
handler

The beginning of the exception handler's code.

public List<TypeAnnotationNode>
invisibleTypeAnnotations

The runtime invisible type annotations on the exception handler type.

public LabelNode
start

The beginning of the exception handler's scope (inclusive).

public String
type

The internal name of the type of exceptions handled by the handler.

public List<TypeAnnotationNode>
visibleTypeAnnotations

The runtime visible type annotations on the exception handler type.

Constructor Summary

AccessConstructor and Description
public
TryCatchBlockNode(final LabelNode
the beginning of the exception handler's scope (inclusive).
start
,
final LabelNode
the end of the exception handler's scope (exclusive).
end
,
final LabelNode
the beginning of the exception handler's code.
handler
,
final String
the internal name of the type of exceptions handled by the handler (see org.objectweb.asm.Type#getInternalName()), or null to catch any exceptions (for "finally" blocks).
type
)

Constructs a new TryCatchBlockNode.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final MethodVisitor
a method visitor.
methodVisitor
)

Makes the given visitor visit this try catch block.

public void
updateIndex(final int
the new index of this try catch block in the method's list of try catch block nodes.
index
)

Updates the index of this try catch block in the method's list of try catch block nodes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
public LabelNode end

The end of the exception handler's scope (exclusive).

handlerback to summary
public LabelNode handler

The beginning of the exception handler's code.

invisibleTypeAnnotationsback to summary
public List<TypeAnnotationNode> invisibleTypeAnnotations

The runtime invisible type annotations on the exception handler type. May be null.

startback to summary
public LabelNode start

The beginning of the exception handler's scope (inclusive).

typeback to summary
public String type

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

visibleTypeAnnotationsback to summary
public List<TypeAnnotationNode> visibleTypeAnnotations

The runtime visible type annotations on the exception handler type. May be null.

Constructor Detail

TryCatchBlockNodeback to summary
public TryCatchBlockNode(final LabelNode start, final LabelNode end, final LabelNode handler, final String type)

Constructs a new TryCatchBlockNode.

Parameters
start:LabelNode

the beginning of the exception handler's scope (inclusive).

end:LabelNode

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

handler:LabelNode

the beginning of the exception handler's code.

type:String

the internal name of the type of exceptions handled by the handler (see org.objectweb.asm.Type#getInternalName()), or null to catch any exceptions (for "finally" blocks).

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

Makes the given visitor visit this try catch block.

Parameters
methodVisitor:MethodVisitor

a method visitor.

updateIndexback to summary
public void updateIndex(final int index)

Updates the index of this try catch block in the method's list of try catch block nodes. This index maybe stored in the 'target' field of the type annotations of this block.

Parameters
index:int

the new index of this try catch block in the method's list of try catch block nodes.