Package ghidra.util.database.spatial
Class AbstractConstraintsTree.TreeRecordVisitor
java.lang.Object
ghidra.util.database.spatial.AbstractConstraintsTree.TreeRecordVisitor
- Enclosing class:
AbstractConstraintsTree<DS extends BoundedShape<NS>,DR extends DBTreeDataRecord<DS, NS, T>, NS extends BoundingShape<NS>, NR extends DBTreeNodeRecord<NS>, T, Q extends Query<DS, NS>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractConstraintsTree.VisitResultbeginNode(NR parent, NR n, Query.QueryInclusion inclusion) protected AbstractConstraintsTree.VisitResultendNode(NR parent, NR n, Query.QueryInclusion inclusion) Called when a node is finished being visited.protected abstract AbstractConstraintsTree.VisitResult
-
Constructor Details
-
TreeRecordVisitor
protected TreeRecordVisitor()
-
-
Method Details
-
beginNode
protected abstract AbstractConstraintsTree.VisitResult beginNode(NR parent, NR n, Query.QueryInclusion inclusion) -
endNode
protected AbstractConstraintsTree.VisitResult endNode(NR parent, NR n, Query.QueryInclusion inclusion) Called when a node is finished being visited.This only applies to nodes into which the visitor descends. The visitor will finish a node in one of three ways: 1) The node's children have all been visited. 2) The visitor returned
AbstractConstraintsTree.VisitResult.TERMINATEwhile visiting a descendant. 3) The visitor returnedAbstractConstraintsTree.VisitResult.ASCENDwhile visiting a child.This method may return any result except
AbstractConstraintsTree.VisitResult.DESCEND. If the visitor is terminating, the return value of this method is ignored.- Parameters:
parent- the parent of this node, ornullwhen visiting the rootn- the node currently being visitedinclusion- the original inclusion of the query before descending- Returns:
- a directive for how the visitor should proceed
-
visitData
-