Class JsrStmt


public class JsrStmt extends JumpStmt
JsrStmt represents a jsr instruction that jumps to a subroutine. Recall that a subroutine is used to implement the finally cause in exception handlers. The ret instruction is used to return from a subroutine.
See Also:
  • Constructor Details

    • JsrStmt

      public JsrStmt(Subroutine sub, Block follow)
      Constructor.
      Parameters:
      sub - Subroutine that this statement jumps to.
      follow - Basic Block following the jump statement.
  • Method Details

    • setFollow

      public void setFollow(Block follow)
    • follow

      public Block follow()
    • sub

      public Subroutine sub()
    • visitForceChildren

      public void visitForceChildren(TreeVisitor visitor)
      Description copied from class: Node
      Visit the children of this node. Not all Nodes will have children to visit.
      Specified by:
      visitForceChildren in class Node
    • visit

      public void visit(TreeVisitor visitor)
      Specified by:
      visit in class Node
    • clone

      public Object clone()
      Specified by:
      clone in class Stmt