Package | Description |
---|---|
com.mattunderscore.trees.examples | |
com.mattunderscore.trees.selection |
Provides interfaces for selecting nodes and subtrees.
|
com.mattunderscore.trees.selectors |
Modifier and Type | Method and Description |
---|---|
void |
NodeSelectorExamples.selectorExample(NodeSelector<String> selector,
Tree<String,Node<String>> tree) |
void |
NodeSelectorExamples.selectorExampleOnMutableTree(NodeSelector<String> selector,
Tree<String,MutableNode<String>> tree) |
Modifier and Type | Method and Description |
---|---|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(NodeSelector<E> baseSelector,
NodeSelector<E> extensionSelector)
Create a node selector that extends another selector.
|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(NodeSelector<E> selector,
Predicate<OpenNode<? extends E,?>> predicate)
Create a node selector for the children of another node selector.
|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(Predicate<OpenNode<? extends E,?>> predicate)
Create a node selector for the root node.
|
Modifier and Type | Method and Description |
---|---|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(NodeSelector<E> baseSelector,
NodeSelector<E> extensionSelector)
Create a node selector that extends another selector.
|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(NodeSelector<E> baseSelector,
NodeSelector<E> extensionSelector)
Create a node selector that extends another selector.
|
<E> NodeSelector<E> |
NodeSelectorFactory.newSelector(NodeSelector<E> selector,
Predicate<OpenNode<? extends E,?>> predicate)
Create a node selector for the children of another node selector.
|
Modifier and Type | Class and Description |
---|---|
class |
ChildSelector<E>
Selector for the children of the nodes of another selector.
|
class |
ExtendingNodeSelector<E>
A node selector that extends from the nodes of other selectors.
|
class |
NextNodeSelector<E>
Selector that applies a predicate to the child nodes selected by another selector.
|
class |
RootMatcherSelector<E>
Selects nodes when the root node matches a predicate.
|
class |
SelectorNodeSelector<E>
Selector that applies a selector to the child nodes selected by another selector.
|
Constructor and Description |
---|
ChildSelector(NodeSelector<E> selector) |
ExtendingNodeSelector(NodeSelector<E> baseSelector) |
NextNodeSelector(NodeSelector<E> selector,
Predicate<OpenNode<? extends E,?>> predicate) |
SelectorNodeSelector(NodeSelector<E> baseSelector,
NodeSelector<E> extensionSelector) |
SelectorNodeSelector(NodeSelector<E> baseSelector,
NodeSelector<E> extensionSelector) |
Copyright © 2014–2016. All rights reserved.