Class GotoStmt


public class GotoStmt extends JumpStmt
Represents an unconditional branch to a basic block.
  • Constructor Details

    • GotoStmt

      public GotoStmt(Block target)
      Constructor.
      Parameters:
      target - The basic Block that is the target of this goto statement.
  • Method Details

    • setTarget

      public void setTarget(Block target)
    • target

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