Class AnyToAnyFunctionComparisonModel

java.lang.Object
ghidra.features.base.codecompare.model.AbstractFunctionComparisonModel
ghidra.features.base.codecompare.model.AnyToAnyFunctionComparisonModel
All Implemented Interfaces:
FunctionComparisonModel

public class AnyToAnyFunctionComparisonModel extends AbstractFunctionComparisonModel
Basic FunctionComparisonModel where a set of functions can be compared with each other
  • Constructor Details

    • AnyToAnyFunctionComparisonModel

      public AnyToAnyFunctionComparisonModel(Collection<Function> functions)
    • AnyToAnyFunctionComparisonModel

      public AnyToAnyFunctionComparisonModel(Function... functions)
  • Method Details

    • getFunctions

      public List<Function> getFunctions(Duo.Side side)
      Description copied from interface: FunctionComparisonModel
      Returns the list of all functions on the given side that could be made active.
      Parameters:
      side - the side to get functions for
      Returns:
      the list of all functions on the given side that could be made active
    • removeFunction

      public void removeFunction(Function function)
      Description copied from interface: FunctionComparisonModel
      Removes the given function from both sides of the comparison.
      Parameters:
      function - the function to remove
    • removeFunctions

      public void removeFunctions(Collection<Function> functionsToRemove)
      Description copied from interface: FunctionComparisonModel
      Removes all the given functions from both sides of the comparison.
      Parameters:
      functionsToRemove - the functions to remove
    • removeFunctions

      public void removeFunctions(Program program)
      Description copied from interface: FunctionComparisonModel
      Removes all functions from the given program from both sides of the comparison
      Parameters:
      program - that program whose functions should be removed from this model
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: FunctionComparisonModel
      Returns true if the model has no function to compare.
      Returns:
      true if the model has no functions to compare
    • addFunctions

      public void addFunctions(Collection<Function> additionalFunctions)
    • addFunction

      public void addFunction(Function function)
    • containsFunction

      protected boolean containsFunction(Duo.Side side, Function function)
      Specified by:
      containsFunction in class AbstractFunctionComparisonModel