TreeFilterProvider
instead@Deprecated public interface ElementFilter extends TreeFilterProvider, Filter<Element<?>>, AutoCloseable, Configurable
Once the ElementForest
is produced by an ArchiveAnalyzer
, the
registered element filters will be called to potentially leave out certain elements from the API analysis.
An example of this might be leaving out certain packages from the analysis of java archives.
The AutoCloseable.close()
is not called if there is no prior call to Configurable.initialize(AnalysisContext)
. Do all your
resource acquisition in initialize, not during the construction of the object.
Modifier and Type | Method and Description |
---|---|
default <E extends Element<E>> |
filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
Deprecated.
Creates a new filter specifically for use with the provided analyzer.
|
getExtensionId, getJSONSchema, initialize
close
applies, deep, shallow, shouldDescendInto
default <E extends Element<E>> Optional<TreeFilter<E>> filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
TreeFilterProvider
filterFor
in interface TreeFilterProvider
archiveAnalyzer
- the archive analyzer to produce a new filter forCopyright © 2014-2021 Lukas Krejci. All Rights Reserved.