Package ghidra.trace.database.memory
Class DBTraceObjectRegister
java.lang.Object
ghidra.trace.database.memory.DBTraceObjectRegister
- All Implemented Interfaces:
DBTraceObjectInterface,TraceRegister,TraceObjectInterface,TraceUniqueObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.trace.database.target.DBTraceObjectInterface
DBTraceObjectInterface.Translator<T> -
Field Summary
Fields inherited from interface ghidra.trace.model.target.iface.TraceObjectInterface
KEY_COMMENT, KEY_DISPLAY, KEY_KIND, KEY_MODIFIED, KEY_ORDER, KEY_SHORT_DISPLAY, KEY_TYPE, KEY_VALUEFields inherited from interface ghidra.trace.model.memory.TraceRegister
KEY_BITLENGTH, KEY_STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBitLength(long snap) getName()Get the object backing this implementationgetState(long snap) byte[]getValue(long snap) voidsetState(Lifespan lifespan, TraceMemoryState state) voidTraceChangeRecord<?, ?> translateEvent(TraceChangeRecord<?, ?> rec) Translate an object event into the interface-specific eventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.trace.database.target.DBTraceObjectInterface
getObjectKey, isDeleted, spaceForValueMethods inherited from interface ghidra.trace.model.memory.TraceRegister
getByteLength
-
Constructor Details
-
DBTraceObjectRegister
-
-
Method Details
-
getObject
Description copied from interface:TraceObjectInterfaceGet the object backing this implementation- Specified by:
getObjectin interfaceTraceObjectInterface- Returns:
- the object
-
getThread
- Specified by:
getThreadin interfaceTraceRegister
-
getName
- Specified by:
getNamein interfaceTraceRegister
-
getBitLength
public int getBitLength(long snap) - Specified by:
getBitLengthin interfaceTraceRegister
-
setValue
- Specified by:
setValuein interfaceTraceRegister
-
getValue
public byte[] getValue(long snap) - Specified by:
getValuein interfaceTraceRegister
-
setState
- Specified by:
setStatein interfaceTraceRegister
-
getState
- Specified by:
getStatein interfaceTraceRegister
-
translateEvent
Description copied from interface:DBTraceObjectInterfaceTranslate an object event into the interface-specific eventBoth the object event and the interface-specific event, if applicable, will be emitted. If multiple events need to be emitted, then this method may emit them directly via its object's trace. If exactly one event needs to be emitted, then this method should return the translated record. If no translation applies, or if the translated event(s) were emitted directly, this method returns
null.- Specified by:
translateEventin interfaceDBTraceObjectInterface- Parameters:
rec- the object event- Returns:
- the interface-specific event to emit, or
null
-