Package ghidra.app.cmd.memory
Class AbstractAddMemoryBlockCmd
java.lang.Object
ghidra.app.cmd.memory.AbstractAddMemoryBlockCmd
- Direct Known Subclasses:
AddBitMappedMemoryBlockCmd
,AddByteMappedMemoryBlockCmd
,AddFileBytesMemoryBlockCmd
,AddInitializedMemoryBlockCmd
,AddUninitializedMemoryBlockCmd
Base command class for adding memory blocks.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Applies the command to the given domain object.protected abstract MemoryBlock
createMemoryBlock
(Memory memory) getName()
Returns the name of this command.Returns the status message indicating the status of the command.void
setArtificial
(boolean a) Prior to command execution the block's artificial attribute state may be specified and will be applied to the new memory block.
-
Field Details
-
message
-
name
-
comment
-
source
-
start
-
length
protected final long length -
read
protected final boolean read -
write
protected final boolean write -
execute
protected final boolean execute -
isVolatile
protected final boolean isVolatile -
isOverlay
protected final boolean isOverlay
-
-
Method Details
-
setArtificial
public void setArtificial(boolean a) Prior to command execution the block's artificial attribute state may be specified and will be applied to the new memory block.- Parameters:
a
- block artificial attribute state
-
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command. -
createMemoryBlock
protected abstract MemoryBlock createMemoryBlock(Memory memory) throws LockException, MemoryConflictException, AddressOverflowException, CancelledException -
applyTo
Description copied from interface:Command
Applies the command to the given domain object.
-