类 TryCatchBlockNode
java.lang.Object
cn.taketoday.bytecode.tree.TryCatchBlockNode
A node that represents a try catch block.
- 作者:
- Eric Bruneton
-
字段概要
字段修饰符和类型字段说明The end of the exception handler's scope (exclusive).The beginning of the exception handler's code.The runtime invisible type annotations on the exception handler type.The beginning of the exception handler's scope (inclusive).The internal name of the type of exceptions handled by the handler.The runtime visible type annotations on the exception handler type. -
构造器概要
构造器构造器说明TryCatchBlockNode(LabelNode start, LabelNode end, LabelNode handler, String type) Constructs a newTryCatchBlockNode. -
方法概要
修饰符和类型方法说明voidaccept(MethodVisitor methodVisitor) Makes the given visitor visit this try catch block.private static voiddoAccept(MethodVisitor methodVisitor, List<TypeAnnotationNode> typeAnnotations, boolean visible) voidupdateIndex(int index) Updates the index of this try catch block in the method's list of try catch block nodes.
-
字段详细资料
-
start
The beginning of the exception handler's scope (inclusive). -
end
The end of the exception handler's scope (exclusive). -
handler
The beginning of the exception handler's code. -
type
The internal name of the type of exceptions handled by the handler. May be null to catch any exceptions (for "finally" blocks). -
visibleTypeAnnotations
The runtime visible type annotations on the exception handler type. May be null. -
invisibleTypeAnnotations
The runtime invisible type annotations on the exception handler type. May be null.
-
-
构造器详细资料
-
TryCatchBlockNode
Constructs a newTryCatchBlockNode.- 参数:
start- the beginning of the exception handler's scope (inclusive).end- the end of the exception handler's scope (exclusive).handler- the beginning of the exception handler's code.type- the internal name of the type of exceptions handled by the handler, or null to catch any exceptions (for "finally" blocks).
-
-
方法详细资料
-
updateIndex
public void updateIndex(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.- 参数:
index- the new index of this try catch block in the method's list of try catch block nodes.
-
accept
Makes the given visitor visit this try catch block.- 参数:
methodVisitor- a method visitor.
-
doAccept
private static void doAccept(MethodVisitor methodVisitor, @Nullable List<TypeAnnotationNode> typeAnnotations, boolean visible)
-