Class OrderedSuccessorsVisitor
java.lang.Object
ghidra.trace.database.target.visitors.OrderedSuccessorsVisitor
- All Implemented Interfaces:
TreeTraversal.SpanIntersectingVisitor,TreeTraversal.Visitor
public class OrderedSuccessorsVisitor
extends Object
implements TreeTraversal.SpanIntersectingVisitor
-
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 valuecontinueObject(TraceObjectValue value) When descending in a value, the object to consider nextStream<? extends TraceObjectValue> continueValues(TraceObject object, Lifespan span, TraceObjectValPath valPath) When descending in an object, the values to consider nextvisitValue(TraceObjectValue value, TraceObjectValPath valPath) Visit a valueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.trace.database.target.visitors.TreeTraversal.SpanIntersectingVisitor
composeSpan
-
Field Details
-
filter
-
forward
protected final boolean forward
-
-
Constructor Details
-
OrderedSuccessorsVisitor
-
-
Method Details
-
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
-
continueValues
public Stream<? extends TraceObjectValue> continueValues(TraceObject object, Lifespan span, TraceObjectValPath valPath) 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 objectvalPath- the path from seed to the current object- Returns:
- the next values
-