public interface ElementForest
| Modifier and Type | Method and Description |
|---|---|
API |
getApi() |
SortedSet<? extends Element> |
getRoots()
A sorted set of all root elements of the forest.
|
<T extends Element> |
search(Class<T> resultType,
boolean recurse,
Filter<? super T> filter,
Element searchRoot)
Searches through the forest for elements of given type, potentially further filtering.
|
@Nonnull SortedSet<? extends Element> getRoots()
@Nonnull <T extends Element> List<T> search(@Nonnull Class<T> resultType, boolean recurse, @Nullable Filter<? super T> filter, @Nullable Element searchRoot)
If the searchRoot is not null, this is technically equivalent to calling the
Element.searchChildren(java.lang.Class, boolean, org.revapi.query.Filter) on the
searchRoot.
T - the type of the elements to look forresultType - the type of the elements to be contained in the resultsrecurse - false to only search direct children, true for searching recursivelyfilter - the optional filtersearchRoot - optional element from which to conduct the searchCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.