Class AnyToAnyFunctionComparisonModel
java.lang.Object
ghidra.features.base.codecompare.model.AbstractFunctionComparisonModel
ghidra.features.base.codecompare.model.AnyToAnyFunctionComparisonModel
- All Implemented Interfaces:
FunctionComparisonModel
Basic FunctionComparisonModel where a set of functions can be compared with each other
-
Field Summary
Fields inherited from class ghidra.features.base.codecompare.model.AbstractFunctionComparisonModel
activeFunctions, FUNCTION_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionAnyToAnyFunctionComparisonModel(Function... functions) AnyToAnyFunctionComparisonModel(Function left, Function right) AnyToAnyFunctionComparisonModel(Collection<Function> functions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(Function function) voidaddFunctions(Collection<Function> additionalFunctions) protected booleancontainsFunction(Duo.Side side, Function function) getFunctions(Duo.Side side) Returns the list of all functions on the given side that could be made active.booleanisEmpty()Returns true if the model has no function to compare.voidremoveFunction(Function function) Removes the given function from both sides of the comparison.voidremoveFunctions(Program program) Removes all functions from the given program from both sides of the comparisonvoidremoveFunctions(Collection<Function> functionsToRemove) Removes all the given functions from both sides of the comparison.Methods inherited from class ghidra.features.base.codecompare.model.AbstractFunctionComparisonModel
addFunctionComparisonModelListener, fireModelDataChanged, getActiveFunction, removeFunctionComparisonModelListener, setActiveFunction
-
Constructor Details
-
AnyToAnyFunctionComparisonModel
-
AnyToAnyFunctionComparisonModel
-
AnyToAnyFunctionComparisonModel
-
-
Method Details
-
getFunctions
Description copied from interface:FunctionComparisonModelReturns 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
Description copied from interface:FunctionComparisonModelRemoves the given function from both sides of the comparison.- Parameters:
function- the function to remove
-
removeFunctions
Description copied from interface:FunctionComparisonModelRemoves all the given functions from both sides of the comparison.- Parameters:
functionsToRemove- the functions to remove
-
removeFunctions
Description copied from interface:FunctionComparisonModelRemoves 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:FunctionComparisonModelReturns true if the model has no function to compare.- Returns:
- true if the model has no functions to compare
-
addFunctions
-
addFunction
-
containsFunction
- Specified by:
containsFunctionin classAbstractFunctionComparisonModel
-