Package org.revapi.base
Class BaseEagerLoadingArchiveAnalyzer.FullForestContext
- java.lang.Object
-
- org.revapi.base.BaseEagerLoadingArchiveAnalyzer.FullForestContext
-
- Enclosing class:
- BaseEagerLoadingArchiveAnalyzer<F extends BaseElementForest<E>,E extends BaseElement<E>>
protected class BaseEagerLoadingArchiveAnalyzer.FullForestContext extends Object
This context object is used to "remember" all the elements that were created during parsing of an archive. Because these elements can be further filtered during theBaseArchiveAnalyzer.analyze(TreeFilter)
call, we don't construct an element forest from these results straight away but rather store the preliminary results in this context object and only pass it to filtering in theBaseEagerLoadingArchiveAnalyzer.discoverRoots(Object)
andBaseEagerLoadingArchiveAnalyzer.discoverElements(Object, BaseElement)
methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FullForestContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
remember(Set<E> elements)
This method remembers the children of all the elements in the provided set (recursively) and clears out the children of each of the elements.
-
-
-
Field Detail
-
originalChildren
public Map<E extends BaseElement<E>,Set<E extends BaseElement<E>>> originalChildren
-
roots
public Set<E extends BaseElement<E>> roots
-
-
Method Detail
-
remember
public void remember(Set<E> elements)
This method remembers the children of all the elements in the provided set (recursively) and clears out the children of each of the elements. This is so that we don't end up with elements that don't match the filter in the final results.- Parameters:
elements
- the elements to remember
-
-