Class DupInstruction

  • All Implemented Interfaces:
    Constants, IInstruction, 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
    • Constructor Detail

      • DupInstruction

        protected DupInstruction​(byte size,
                                 byte delta)
    • Method Detail

      • make

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

        public int getSize()
      • getDelta

        public int getDelta()
      • hashCode

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

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