T
- The partition tree type.@FunctionalInterface
private static interface SegmentPartitionTree.VisitingFunction<T extends PartitionTree<SegmentPartitionTree.LineSegment,T>>
Modifier and Type | Method and Description |
---|---|
default boolean |
visitTree(T tree,
SegmentPartitionTree.LineSegment line,
boolean ignoreInnerTerminals,
SegmentPartitionTree.PartitionTreeVisitor<T> visitor)
Visitor function for partition tree traversal.
|
boolean |
visitTree(T tree,
SegmentPartitionTree.LineSegment line,
int maxDepth,
boolean ignoreInnerTerminals,
SegmentPartitionTree.PartitionTreeVisitor<T> visitor)
Visitor function for partition tree traversal.
|
boolean visitTree(T tree, SegmentPartitionTree.LineSegment line, int maxDepth, boolean ignoreInnerTerminals, SegmentPartitionTree.PartitionTreeVisitor<T> visitor)
tree
- The partition tree to traverse.line
- The query line to search with.maxDepth
- The maximum search depth in the tree.ignoreInnerTerminals
- Whether to ignore inner terminals or not. When ignored the
search treats inner terminals as regular inner nodes and the search continues to
the child nodes of these inner terminal nodes.visitor
- The visitor to report traversed terminal and inner nodes to.SegmentPartitionTree.VisitingFunction
,
SegmentPartitionTree.PartitionTreeVisitor
,
#visitTree(PartitionTree, LineSegment, boolean, PartitionTreeVisitor)
default boolean visitTree(T tree, SegmentPartitionTree.LineSegment line, boolean ignoreInnerTerminals, SegmentPartitionTree.PartitionTreeVisitor<T> visitor)
tree
- The partition tree to traverse.line
- The query line to search with.ignoreInnerTerminals
- Whether to ignore inner terminals or not. When ignored the
search treats inner terminals as regular inner nodes and the search continues to
the child nodes of these inner terminal nodes.visitor
- The visitor to report traversed terminal and inner nodes to.SegmentPartitionTree.VisitingFunction
,
SegmentPartitionTree.PartitionTreeVisitor
,
#visitTree(PartitionTree, LineSegment, int, boolean, PartitionTreeVisitor)