Class RetStmt


public class RetStmt extends JumpStmt
RetStmt represents the ret opcode which returns from a subroutine. Recall that when a subroutine returns, the ret opcode's argument specifies a local variable that stores the return address of
  • Constructor Details

  • Method Details

    • 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
    • sub

      public Subroutine sub()
    • clone

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