public class ConfigurableElementFilter extends Object implements org.revapi.TreeFilterProvider
If no include or exclude filters are defined, everything is included. If at least 1 include filter is defined, only elements matching it are included. Out of the included elements, some may be further excluded by the exclude filters.
See META-INF/filter-schema.json
for the schema of the configuration.
Constructor and Description |
---|
ConfigurableElementFilter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<E extends org.revapi.Element<E>> |
filterFor(org.revapi.ArchiveAnalyzer<E> archiveAnalyzer) |
String |
getExtensionId() |
Reader |
getJSONSchema() |
void |
initialize(org.revapi.AnalysisContext analysisContext) |
@Nullable public String getExtensionId()
getExtensionId
in interface org.revapi.configuration.Configurable
@Nullable public Reader getJSONSchema()
getJSONSchema
in interface org.revapi.configuration.Configurable
public void initialize(@Nonnull org.revapi.AnalysisContext analysisContext)
initialize
in interface org.revapi.configuration.Configurable
public <E extends org.revapi.Element<E>> Optional<org.revapi.TreeFilter<E>> filterFor(org.revapi.ArchiveAnalyzer<E> archiveAnalyzer)
filterFor
in interface org.revapi.TreeFilterProvider
public void close()
close
in interface AutoCloseable
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.