E
- The element typepublic abstract class ExtendingNodeSelector<E> extends Object implements NodeSelector<E>
Constructor and Description |
---|
ExtendingNodeSelector(NodeSelector<E> baseSelector) |
Modifier and Type | Method and Description |
---|---|
protected abstract <N extends OpenNode<E,? extends N>> |
getExtendingIterator(N nodeToExtendFrom)
Abstract method that is used to take one node returned by the base selector and return an iterator over the
extended selection.
|
<N extends OpenNode<E,? extends N>> |
select(Tree<E,? extends N> tree) |
public ExtendingNodeSelector(NodeSelector<E> baseSelector)
public final <N extends OpenNode<E,? extends N>> Iterator<? extends N> select(Tree<E,? extends N> tree) throws OperationNotSupportedForType
select
in interface NodeSelector<E>
N
- The type of the nodes in the treetree
- The tree to select fromIterator
over the selected nodesOperationNotSupportedForType
- if the type of the tree cannot be iteratedprotected abstract <N extends OpenNode<E,? extends N>> Iterator<? extends N> getExtendingIterator(N nodeToExtendFrom)
N
- The node typenodeToExtendFrom
- The node to extend fromCopyright © 2014–2016. All rights reserved.