java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.codeless.Constraint

@Ser public class Constraint extends Object
Constraint limiting a target function to a set of possible reference functions.
  • Constructor Details

    • Constraint

      public Constraint(Collection<Func> possibleFuncs)
      Create a constraint from possible reference functions.
      Parameters:
      possibleFuncs - possible reference functions
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Determine whether this constraint allows no function.
      Returns:
      true if no possible function remains
    • hashCode

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

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

      public Set<Func> getPossibleFuncs()
      Get the possible reference functions.
      Returns:
      possible reference functions
    • setPossibleFuncs

      public void setPossibleFuncs(Set<Func> possibleFuncs)
      Set the possible reference functions.
      Parameters:
      possibleFuncs - possible reference functions