Class DupInstruction

  • All Implemented Interfaces:
    Constants, IInstruction, java.lang.Cloneable

    public final class DupInstruction
    extends Instruction
    This class represents dup instructions. There are two kinds of dup instructions, dup and dup_x1:

    dup: a::rest => a::a::rest dup_x1: a::b::rest => a::b::a::rest

    • Method Detail

      • make

        public static DupInstruction make​(int delta)
        Parameters:
        delta - 0 for dup, 1 for dup_x1
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getSize

        public int getSize()
      • getDelta

        public int getDelta()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isPEI

        public boolean isPEI()
        Description copied from interface: IInstruction
        PEI == "Potentially excepting instruction"
        Returns:
        true iff this instruction might throw an exception