public class TryCatchBlockNode
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
LabelNode |
end
End of the exception handler's scope (exclusive).
|
LabelNode |
handler
Beginning of the exception handler's code.
|
java.util.List<TypeAnnotationNode> |
invisibleTypeAnnotations
The runtime invisible type annotations on the exception handler type.
|
LabelNode |
start
Beginning of the exception handler's scope (inclusive).
|
java.lang.String |
type
Internal name of the type of exceptions handled by the handler.
|
java.util.List<TypeAnnotationNode> |
visibleTypeAnnotations
The runtime visible type annotations on the exception handler type.
|
| 构造器和说明 |
|---|
TryCatchBlockNode(LabelNode start,
LabelNode end,
LabelNode handler,
java.lang.String type)
Constructs a new
TryCatchBlockNode. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(MethodVisitor mv)
Makes the given visitor visit this try catch block.
|
void |
updateIndex(int index)
Updates the index of this try catch block in the method's list of try
catch block nodes.
|
public LabelNode start
public LabelNode end
public LabelNode handler
public java.lang.String type
public java.util.List<TypeAnnotationNode> visibleTypeAnnotations
TypeAnnotationNode objects. May be
null.public java.util.List<TypeAnnotationNode> invisibleTypeAnnotations
TypeAnnotationNode objects. May be
null.public TryCatchBlockNode(LabelNode start, LabelNode end, LabelNode handler, java.lang.String type)
TryCatchBlockNode.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).public void updateIndex(int index)
index - the new index of this try catch block in the method's list of
try catch block nodes.public void accept(MethodVisitor mv)
mv - a method visitor.