类 Edge

java.lang.Object
cn.taketoday.bytecode.Edge

final class Edge extends Object
An edge in the control flow graph of a method. Each node of this graph is a basic block, represented with the Label corresponding to its first instruction. Each edge goes from one node to another, i.e. from one basic block to another (called the predecessor and successor blocks, respectively). An edge corresponds either to a jump or ret instruction or to an exception handler.
作者:
Eric Bruneton
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    (专用程序包) static final int
    A control flow graph edge corresponding to an exception handler.
    final int
    Information about this control flow graph edge.
    (专用程序包) static final int
    A control flow graph edge corresponding to a jump or ret instruction.
    The next edge in the list of outgoing edges of a basic block.
    final Label
    The successor block of this control flow graph edge.
  • 构造器概要

    构造器
    构造器
    说明
    Edge(int info, Label successor, Edge nextEdge)
    Constructs a new Edge.
  • 方法概要

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • JUMP

      static final int JUMP
      A control flow graph edge corresponding to a jump or ret instruction. Only used with ClassWriter.COMPUTE_FRAMES.
      另请参阅:
    • EXCEPTION

      static final int EXCEPTION
      A control flow graph edge corresponding to an exception handler. Only used with ClassWriter.COMPUTE_MAXS.
      另请参阅:
    • info

      public final int info
      Information about this control flow graph edge.
      • If ClassWriter.COMPUTE_MAXS is used, this field contains either a stack size delta (for an edge corresponding to a jump instruction), or the value EXCEPTION (for an edge corresponding to an exception handler). The stack size delta is the stack size just after the jump instruction, minus the stack size at the beginning of the predecessor basic block, i.e. the one containing the jump instruction.
      • If ClassWriter.COMPUTE_FRAMES is used, this field contains either the value JUMP (for an edge corresponding to a jump instruction), or the index, in the ClassWriter type table, of the exception type that is handled (for an edge corresponding to an exception handler).
    • successor

      public final Label successor
      The successor block of this control flow graph edge.
    • nextEdge

      public Edge nextEdge
      The next edge in the list of outgoing edges of a basic block. See Label.outgoingEdges.
  • 构造器详细资料

    • Edge

      Edge(int info, Label successor, Edge nextEdge)
      Constructs a new Edge.
      参数:
      info - see info.
      successor - see successor.
      nextEdge - see nextEdge.