Package ghidra.app.cmd.data
Class AbstractCreateStructureCmd
java.lang.Object
ghidra.app.cmd.data.AbstractCreateStructureCmd
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
CreateStructureCmd
,CreateStructureInStructureCmd
A base class to hold duplicate information for commands that create
structures. This class implements the logic of the
applyTo(DomainObject)
method so that child implementations need
only to implement the abstract methods.- Since:
- Tracker Id 383
-
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject domainObject) Applies this command to the given domain object.getName()
Returns the name of this command.Get the new structure data type which was created.Returns the status message indicating the status of the command.
-
Method Details
-
applyTo
Applies this command to the given domain object.This method is a Form Template method in that child subclasses do not need to override the method, but only need to implement the methods that this method calls.
-
getNewDataType
Get the new structure data type which was created.- Returns:
- new structure.
-
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.
-