Package ghidra.app.cmd.data
Class AbstractCreateStructureCmd
- java.lang.Object
-
- ghidra.app.cmd.data.AbstractCreateStructureCmd
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
CreateStructureCmd,CreateStructureInStructureCmd
public abstract class AbstractCreateStructureCmd extends java.lang.Object implements Command
A base class to hold duplicate information for commands that create structures. This class implements the logic of theapplyTo(DomainObject)method so that child implementations need only to implement the abstract methods.- Since:
- Tracker Id 383
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyTo(DomainObject domainObject)Applies this command to the given domain object.java.lang.StringgetName()Returns the name of this command.DataTypegetNewDataType()Get the new structure data type which was created.java.lang.StringgetStatusMsg()Returns the status message indicating the status of the command.
-
-
-
Method Detail
-
applyTo
public boolean applyTo(DomainObject domainObject)
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.
- Specified by:
applyToin interfaceCommand- Parameters:
domainObject- The domain object that is associated with this command- Returns:
- true if the command applied successfully
- See Also:
Command.applyTo(DomainObject)
-
getNewDataType
public DataType getNewDataType()
Get the new structure data type which was created.- Returns:
- new structure.
-
getStatusMsg
public java.lang.String 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:
Command.getStatusMsg()
-
getName
public java.lang.String getName()
Description copied from interface:CommandReturns the name of this command.- Specified by:
getNamein interfaceCommand- Returns:
- the name of this command
- See Also:
Command.getName()
-
-