Class StackManipStmt

All Implemented Interfaces:
Assign

public class StackManipStmt extends Stmt implements Assign
StackManipStmt represents the opcodes that manipulate the stack such as swap and dup.
  • Field Details

  • Constructor Details

    • StackManipStmt

      public StackManipStmt(StackExpr[] target, StackExpr[] source, int kind)
      Constructor.
      Parameters:
      target - The new contents of the stack
      source - The old contents of the stack
      kind - The kind of stack manipulation (SWAP, DUP, etc.) to take place.
  • Method Details

    • defs

      public DefExpr[] defs()
      Description copied from interface: Assign
      Returns the expressions that may be modified (defined) by this expression or statement.
      Specified by:
      defs in interface Assign
    • target

      public StackExpr[] target()
    • source

      public StackExpr[] source()
    • kind

      public int kind()
    • visit

      public void visit(TreeVisitor visitor)
      Specified by:
      visit in class Node
    • 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 Object clone()
      Specified by:
      clone in class Stmt