Class DUP2

All Implemented Interfaces:
Cloneable, PushInstruction, StackProducer

public class DUP2 extends StackInstruction implements PushInstruction
DUP2 - Duplicate two top operand stack words
 Stack: ..., word2, word1 -> ..., word2, word1, word2, word1
 
  • Constructor Details

    • DUP2

      public DUP2()
  • Method Details

    • accept

      public void accept(Visitor v)
      Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.
      Specified by:
      accept in class Instruction
      Parameters:
      v - Visitor object