BaseElementForest
instead@Deprecated public class SimpleElementForest extends Object implements ElementForest
SimpleElement
s.ElementForest.Visitor<E extends Element<E>>
Modifier | Constructor and Description |
---|---|
protected |
SimpleElementForest(API api)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
API |
getApi()
Deprecated.
|
SortedSet<? extends SimpleElement> |
getRoots()
Deprecated.
A sorted set of all root elements of the forest.
|
protected SortedSet<? extends SimpleElement> |
newRootsInstance()
Deprecated.
|
<T extends Element> |
search(Class<T> resultType,
boolean recurse,
TreeFilter filter,
Element root)
Deprecated.
|
<T extends Element> |
search(List<T> results,
Class<T> resultType,
SortedSet<? extends Element> currentLevel,
boolean recurse,
Filter<? super T> filter)
Deprecated.
|
<T extends Element> |
search(List<T> results,
Class<T> resultType,
SortedSet<? extends Element> currentLevel,
boolean recurse,
TreeFilter filter)
Deprecated.
|
java.util.stream.Stream |
stream(Class resultType,
boolean recurse,
TreeFilter filter,
Element root)
Deprecated.
Walks through the forest and returns a stream of elements that match the provided filter.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
empty, iterateOverElements, search, stream, walk, walk
@Nonnull public API getApi()
getApi
in interface ElementForest
@Nonnull public SortedSet<? extends SimpleElement> getRoots()
ElementForest
getRoots
in interface ElementForest
public java.util.stream.Stream stream(Class resultType, boolean recurse, TreeFilter filter, @Nullable Element root)
ElementForest
stream
in interface ElementForest
resultType
- the expected type of resultsrecurse
- whether to recursively descend into children. If false, only the direct children of the
root are searched.filter
- the filter to use when looking for matching childrenroot
- the search root. If null, the whole element forest is searchedpublic <T extends Element> void search(@Nonnull List<T> results, @Nonnull Class<T> resultType, @Nonnull SortedSet<? extends Element> currentLevel, boolean recurse, @Nullable Filter<? super T> filter)
public <T extends Element> List<T> search(Class<T> resultType, boolean recurse, TreeFilter filter, Element root)
public <T extends Element> void search(List<T> results, Class<T> resultType, SortedSet<? extends Element> currentLevel, boolean recurse, TreeFilter filter)
protected SortedSet<? extends SimpleElement> newRootsInstance()
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.