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:
    RetStmt, Subroutine
    • Constructor Detail

      • JsrStmt

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

      • setFollow

        public void setFollow​(Block follow)
      • follow

        public Block follow()
      • 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
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in class Stmt