Package ghidra.app.cmd.module
Class AbstractModularizationCmd
- Direct Known Subclasses:
ComplexityDepthModularizationCmd
,DominanceModularizationCmd
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractModularizationCmd
(String name, GroupPath path, String treeName, ProgramSelection selection, CodeBlockModel blockModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
boolean
applyTo
(Program p, TaskMonitor taskMonitor) Method called when this command is to apply changes to the given domain object.protected void
protected GDirectedGraph
<CodeBlockVertex, CodeBlockEdge> protected ProgramFragment
createFragment
(ProgramModule root, CodeBlock block) protected ProgramModule
createModule
(ProgramModule parent, String moduleName) protected void
makeFragment
(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:BackgroundCommand
Method 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:
applyTo
in 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
-