Class InitStmt

All Implemented Interfaces:
Assign

public class InitStmt extends Stmt implements Assign
InitStmt groups together the initialization of local variables (LocalExpr).
See Also:
  • Constructor Details

    • InitStmt

      public InitStmt(LocalExpr[] targets)
      Constructor.
      Parameters:
      targets - The instances of LocalExpr that are to be initialized.
  • Method Details

    • targets

      public LocalExpr[] targets()
      Returns the local variables (LocalExprs) initialized by this InitStmt.
    • defs

      public DefExpr[] defs()
      Returns the local variables (LocalExprs) defined by this InitStmt. These are the same local variables that are the targets of the InitStmt.
      Specified by:
      defs in interface Assign
    • 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