Package ghidra.app.cmd.module
Class AbstractModularizationCmd
- Direct Known Subclasses:
ComplexityDepthModularizationCmd,DominanceModularizationCmd
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractModularizationCmd(String name, GroupPath path, String treeName, ProgramSelection selection, CodeBlockModel blockModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbooleanapplyTo(Program p, TaskMonitor taskMonitor) Method called when this command is to apply changes to the given domain object.protected voidprotected GDirectedGraph<CodeBlockVertex, CodeBlockEdge> protected ProgramFragmentcreateFragment(ProgramModule root, CodeBlock block) protected ProgramModulecreateModule(ProgramModule parent, String moduleName) protected voidmakeFragment(Program p, ProgramModule module, CodeBlockVertex vertex) Methods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, getName, getStatusMsg, hasProgress, isModal, run, setStatusMsg, taskCompleted, toString
-
Field Details
-
program
-
destinationModule
-
monitor
-
-
Constructor Details
-
AbstractModularizationCmd
public AbstractModularizationCmd(String name, GroupPath path, String treeName, ProgramSelection selection, CodeBlockModel blockModel)
-
-
Method Details
-
applyModel
- Throws:
CancelledException
-
applyTo
Description copied from class:BackgroundCommandMethod called when this command is to apply changes to the given domain object. A monitor is provided to display status information about the command as it executes in the background.- Specified by:
applyToin classBackgroundCommand<Program>- Parameters:
p- domain object that will be affected by the commandtaskMonitor- monitor to show progress of the command- Returns:
- true if the command applied successfully
-
cleanEmpty
- Throws:
NotEmptyException
-
createCallGraph
- Throws:
CancelledException
-
makeFragment
-
createFragment
-
createModule
-