类 TryCatchBlockNode

java.lang.Object
org.beetl.ow2.asm.tree.TryCatchBlockNode

public class TryCatchBlockNode extends Object
A node that represents a try catch block.
作者:
Eric Bruneton
  • 字段详细资料

    • start

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

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

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

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

      public List<TypeAnnotationNode> visibleTypeAnnotations
      The runtime visible type annotations on the exception handler type. This list is a list of TypeAnnotationNode objects. May be null.
    • invisibleTypeAnnotations

      public List<TypeAnnotationNode> invisibleTypeAnnotations
      The runtime invisible type annotations on the exception handler type. This list is a list of TypeAnnotationNode objects. May be null.
  • 构造器详细资料

    • TryCatchBlockNode

      public TryCatchBlockNode(LabelNode start, LabelNode end, LabelNode handler, String type)
      Constructs a new 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 className 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

      public void accept(MethodVisitor mv)
      Makes the given visitor visit this try catch block.
      参数:
      mv - a method visitor.