public final class DebugComponentTimeMachine
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DebugComponentTimeMachine.TreeRevision |
static class |
DebugComponentTimeMachine.TreeRevisions |
Modifier and Type | Method and Description |
---|---|
static DebugComponentTimeMachine.TreeRevisions |
getTimeline(DebugComponent component)
Finds the timeline corresponding to a component
|
static boolean |
loadTimelineSnapshot(DebugComponent node,
java.lang.String destination)
Applies a StateHandler to a Component node from the cache
|
static boolean |
maybeSkipNextSnapshot(DebugComponent node)
Prevents the next call to saveTimelineSnapshot for this DebugComponent
|
static boolean |
saveTimelineSnapshot(ComponentTree componentTree,
Component root,
TreeState treeState,
TreeProps props,
int source,
java.lang.String attribution)
Caches a StateHandler and Component root alongside metadata for them
|
static void |
skipNextSnapshot(ComponentTree tree)
Prevents the next call to saveTimelineSnapshot for this ComponentTree
|
public static DebugComponentTimeMachine.TreeRevisions getTimeline(DebugComponent component)
component
- the component the timeline is forpublic static boolean saveTimelineSnapshot(ComponentTree componentTree, Component root, TreeState treeState, TreeProps props, int source, java.lang.String attribution)
componentTree
- the ComponentTree we want to save the snapshot forroot
- the component to save the timeline forstateHandler
- the state handler for the context in the rootprops
- the props of the component rootsource
- the cause of the redraw that will be savedattribution
- the context of the cause of the redrawpublic static boolean loadTimelineSnapshot(DebugComponent node, java.lang.String destination)
node
- the component the timeline is fordestination
- the TreeRevision#key at the timeline we'll be traveling topublic static void skipNextSnapshot(ComponentTree tree)
tree
- the component tree the timeline is forpublic static boolean maybeSkipNextSnapshot(DebugComponent node)
node
- the component the timeline is for