Class CanonicalSuccessorsRelativeVisitor
java.lang.Object
ghidra.trace.database.target.visitors.CanonicalSuccessorsRelativeVisitor
- All Implemented Interfaces:
TreeTraversal.Visitor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomposePath(TraceObjectValPath pre, TraceObjectValue value) When descending in a value, what path leads to the valuecomposeSpan(Lifespan pre, TraceObjectValue value) When descending in a value, what span to consider in the subtreecontinueObject(TraceObjectValue value) When descending in a value, the object to consider nextStream<? extends TraceObjectValue> continueValues(TraceObject object, Lifespan span, TraceObjectValPath pre) When descending in an object, the values to consider nextprotected TraceObjectValuegetCanonicalValue(TraceObject parent, String key) visitValue(TraceObjectValue value, TraceObjectValPath valPath) Visit a value
-
Field Details
-
filter
-
seen
-
-
Constructor Details
-
CanonicalSuccessorsRelativeVisitor
-
-
Method Details
-
composeSpan
Description copied from interface:TreeTraversal.VisitorWhen descending in a value, what span to consider in the subtreeUsually this is intersection. See
TreeTraversal.SpanIntersectingVisitor- Specified by:
composeSpanin interfaceTreeTraversal.Visitor- Parameters:
pre- the span composed from values from seed to but excluding the current valuevalue- the current value- Returns:
- the span composed from values from seed to and including the current value
-
composePath
Description copied from interface:TreeTraversal.VisitorWhen descending in a value, what path leads to the valueThis is usually
TraceObjectValPath.append(TraceObjectValue)orTraceObjectValPath.prepend(TraceObjectValue).- Specified by:
composePathin interfaceTreeTraversal.Visitor- Parameters:
pre- the path from seed to the but excluding the current valuevalue- the path from seed to the and including the current value- Returns:
- the path from seed to and including the current value
-
visitValue
Description copied from interface:TreeTraversal.VisitorVisit a valueNote that the path is the composed path, so it will likely have the current value at its beginning or end.
- Specified by:
visitValuein interfaceTreeTraversal.Visitor- Parameters:
value- the current valuevalPath- the path from seed to value- Returns:
- directions for how traversal should proceed
-
continueObject
Description copied from interface:TreeTraversal.VisitorWhen descending in a value, the object to consider nextThis is usually
TraceObjectValue.getChild()orTraceObjectValue.getParent().- Specified by:
continueObjectin interfaceTreeTraversal.Visitor- Parameters:
value- the current value- Returns:
- the next object
-
getCanonicalValue
-
continueValues
public Stream<? extends TraceObjectValue> continueValues(TraceObject object, Lifespan span, TraceObjectValPath pre) Description copied from interface:TreeTraversal.VisitorWhen descending in an object, the values to consider next- Specified by:
continueValuesin interfaceTreeTraversal.Visitor- Parameters:
object- the current objectspan- the composed span of values from seed to the current objectpre- the path from seed to the current object- Returns:
- the next values
-