Package ghidra.program.model.mem
Interface MemoryBlockListener
-
public interface MemoryBlockListener
Methods for a listener that is called when changes are made to a MemoryBlock.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
commentChanged(MemoryBlock block, java.lang.String oldComment, java.lang.String newComment)
Notification that the block's comment changed.void
dataChanged(MemoryBlock block, Address addr, byte[] oldData, byte[] newData)
Notification that bytes changed in the block.void
executeStatusChanged(MemoryBlock block, boolean isExecute)
Notification that the block's execute attribute has changed.void
nameChanged(MemoryBlock block, java.lang.String oldName, java.lang.String newName)
Notification the name changed.void
readStatusChanged(MemoryBlock block, boolean isRead)
Notification the block's read attribute has changed.void
sourceChanged(MemoryBlock block, java.lang.String oldSource, java.lang.String newSource)
Notification that the source of the block has changed.void
sourceOffsetChanged(MemoryBlock block, long oldOffset, long newOffset)
Notification that the source offset has changed.void
writeStatusChanged(MemoryBlock block, boolean isWrite)
Notification that the block's write attribute has changed.
-
-
-
Method Detail
-
nameChanged
void nameChanged(MemoryBlock block, java.lang.String oldName, java.lang.String newName)
Notification the name changed.- Parameters:
block
- affected blockoldName
- old namenewName
- new name
-
commentChanged
void commentChanged(MemoryBlock block, java.lang.String oldComment, java.lang.String newComment)
Notification that the block's comment changed.- Parameters:
block
- affected blockoldComment
- old comment; may be nullnewComment
- new comment; may be null
-
readStatusChanged
void readStatusChanged(MemoryBlock block, boolean isRead)
Notification the block's read attribute has changed.- Parameters:
block
- affected blockisRead
- true means the block is marked as readable
-
writeStatusChanged
void writeStatusChanged(MemoryBlock block, boolean isWrite)
Notification that the block's write attribute has changed.- Parameters:
block
- affected blockisWrite
- true means the block is marked as writable
-
executeStatusChanged
void executeStatusChanged(MemoryBlock block, boolean isExecute)
Notification that the block's execute attribute has changed.- Parameters:
block
- affected blockisExecute
- true means the block is marked as executable
-
sourceChanged
void sourceChanged(MemoryBlock block, java.lang.String oldSource, java.lang.String newSource)
Notification that the source of the block has changed.- Parameters:
block
- affected blockoldSource
- old sourcenewSource
- new source
-
sourceOffsetChanged
void sourceOffsetChanged(MemoryBlock block, long oldOffset, long newOffset)
Notification that the source offset has changed.- Parameters:
block
- affected blockoldOffset
- old offsetnewOffset
- new offset
-
dataChanged
void dataChanged(MemoryBlock block, Address addr, byte[] oldData, byte[] newData)
Notification that bytes changed in the block.- Parameters:
block
- affected blockaddr
- starting address of the changeoldData
- old byte valuesnewData
- new byte values
-
-