java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.SPDC
All Implemented Interfaces:
Comparable<SPDC>

@Ser public class SPDC extends Object implements Comparable<SPDC>
"Stack Pointer Delta Candidate". Immutable.

Candidate for a stack pointer delta (eg, SP-out, SP-highest). Placeholder for a triplet (offset, guarantee, origin).

See Also:
  • Field Details

  • Constructor Details

    • SPDC

      public SPDC(int value, int guarantee, int origin)
  • Method Details

    • getBest

      public static SPDC getBest(SPDC a, SPDC b)
      note: if both candidates are "equally-best", the first one (a) is returned.
    • getValue

      public int getValue()
    • getGuarantee

      public int getGuarantee()
    • getOrigin

      public int getOrigin()
    • clone

      public SPDC clone()
      Overrides:
      clone in class Object
    • compareTo

      public int compareTo(SPDC o)
      Specified by:
      compareTo in interface Comparable<SPDC>
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object