Package ghidra.trace.util
Class TypedEventDispatcher
java.lang.Object
ghidra.trace.util.TypedEventDispatcher
- Direct Known Subclasses:
DBTraceProgramView.EventTranslator,TraceDomainObjectListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidhandleTraceChangeRecord(TraceChangeRecord<?, ?> rec) protected voidlistenFor(TraceEvent<?, ?> type, TypedEventDispatcher.IgnoreAllHandler handler) protected voidlistenFor(TraceEvent<?, ?> type, TypedEventDispatcher.IgnoreValuesHandler handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedAndValuesOnlyHandler<? super T, ? super U> handler) Listen for the given event, taking the affected object, the old value, and the new valueprotected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedObjectHandler<? super T> handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedObjectOnlyHandler<? super T> handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.EventRecordHandler<T, U> handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.FullEventRecordHandler<? super T, ? super U> handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.SpaceValuesHandler<? super U> handler) protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.ValuesOnlyHandler<? super U> handler) protected voidlistenForUntyped(EventType type, Consumer<DomainObjectChangeRecord> handler) protected void
-
Field Details
-
restoredHandler
-
-
Constructor Details
-
TypedEventDispatcher
public TypedEventDispatcher()
-
-
Method Details
-
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.EventRecordHandler<T, U> handler) -
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.FullEventRecordHandler<? super T, ? super U> handler) -
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedObjectHandler<? super T> handler) -
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedObjectOnlyHandler<? super T> handler) -
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.AffectedAndValuesOnlyHandler<? super T, ? super U> handler) Listen for the given event, taking the affected object, the old value, and the new value- Type Parameters:
T- the type of the affected objectU- the type of the values- Parameters:
type- the event typehandler- the handler
-
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.ValuesOnlyHandler<? super U> handler) -
listenFor
protected <T,U> void listenFor(TraceEvent<T, U> type, TypedEventDispatcher.SpaceValuesHandler<? super U> handler) -
listenFor
-
listenFor
-
listenForUntyped
-
handleChangeRecord
-
handleTraceChangeRecord
-
unhandled
-