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.
    • Constructor Detail

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

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

        public int kind()
      • 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