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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanApplies the command to the given domain object.protected abstract MemoryBlockcreateMemoryBlock(Memory memory) getName()Returns the name of this command.Returns the status message indicating the status of the command.voidsetArtificial(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:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand<Program>- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:CommandReturns the name of this command. -
createMemoryBlock
protected abstract MemoryBlock createMemoryBlock(Memory memory) throws LockException, MemoryConflictException, AddressOverflowException, CancelledException -
applyTo
Description copied from interface:CommandApplies the command to the given domain object.
-