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
ConstructorDescriptionAnyToAnyFunctionComparisonModel
(Function... functions) AnyToAnyFunctionComparisonModel
(Collection<Function> functions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(Function function) void
addFunctions
(Collection<Function> additionalFunctions) protected boolean
containsFunction
(Duo.Side side, Function function) getFunctions
(Duo.Side side) Returns the list of all functions on the given side that could be made active.boolean
isEmpty()
Returns true if the model has no function to compare.void
removeFunction
(Function function) Removes the given function from both sides of the comparison.void
removeFunctions
(Program program) Removes all functions from the given program from both sides of the comparisonvoid
removeFunctions
(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
-
-
Method Details
-
getFunctions
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
Description copied from interface:FunctionComparisonModel
Removes the given function from both sides of the comparison.- Parameters:
function
- the function to remove
-
removeFunctions
Description copied from interface:FunctionComparisonModel
Removes all the given functions from both sides of the comparison.- Parameters:
functionsToRemove
- the functions to remove
-
removeFunctions
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
-
addFunction
-
containsFunction
- Specified by:
containsFunction
in classAbstractFunctionComparisonModel
-