Package org.revapi
Interface ElementMatcher.CompiledRecipe
-
- Enclosing interface:
- ElementMatcher
public static interface ElementMatcher.CompiledRecipe
A "compiled" representation of a textual recipe. It is assumed that the element matchers will want to create some intermediate representation of the textual recipe that is faster to transform into a tree filter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E extends Element<E>>
TreeFilter<E>filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
The recipe needs to be transformed into aTreeFilter
to be used for filtering of the element forest.
-
-
-
Method Detail
-
filterFor
@Nullable <E extends Element<E>> TreeFilter<E> filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
The recipe needs to be transformed into aTreeFilter
to be used for filtering of the element forest. It is assumed that the element matcher may want cooperate with the archive analyzer that produced the element forest to correctly set up the filter.- Parameters:
archiveAnalyzer
- the archive analyzer that produced the element forest that will be filtered by the returned tree filter- Returns:
- a tree filter to use for filtering the forest or null if the recipe is not applicable to elements of the provided archive analyzer
-
-