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 TypeMethodDescriptionbooleanapplyTo(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:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:CommandReturns the name of this command.
-