Package ghidra.app.cmd.module
Class CreateFragmentCmd
java.lang.Object
ghidra.app.cmd.module.CreateFragmentCmd
- All Implemented Interfaces:
Command
Command to create a Fragment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateFragmentCmd
(String treeName, String name, String parentName) Construct a new CreateFragmentCmd. -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Apply the command; if the name already exists, then the fragment will not be created.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Constructor Details
-
CreateFragmentCmd
Construct a new CreateFragmentCmd.- Parameters:
treeName
- name of the tree where the fragment will residename
- name of the new FragmentparentName
- name of the module that is the parent of the fragment
-
-
Method Details
-
applyTo
Apply the command; if the name already exists, then the fragment will not be created. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:Command
Returns the name of this command.
-