public class ConfigurableElementFilter extends Object implements org.revapi.ElementFilter
The configuration looks like follows:
{
"revapi" : {
"filter" : {
"elements" : {
"include" : ["REGEX_ON_ELEMENT_FULL_REPRESENTATIONS", "ANOTHER_REGEX_ON_ELEMENT_FULL_REPRESENTATIONS"],
"exclude" : ["REGEX_ON_ELEMENT_FULL_REPRESENTATIONS", "ANOTHER_REGEX_ON_ELEMENT_FULL_REPRESENTATIONS"]
},
"archives" : {
"include" : ["REGEX_ON_ARCHIVE_NAMES", "ANOTHER_REGEX_ON_ARCHIVE_NAMES"],
"exclude" : ["REGEX_ON_ARCHIVE_NAMES", "ANOTHER_REGEX_ON_ARCHIVE_NAMES"]
}
}
}
}
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.
| Constructor and Description |
|---|
ConfigurableElementFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(org.revapi.Element element) |
void |
close() |
String[] |
getConfigurationRootPaths() |
Reader |
getJSONSchema(String configurationRootPath) |
void |
initialize(org.revapi.AnalysisContext analysisContext) |
boolean |
shouldDescendInto(Object element) |
@Nullable public String[] getConfigurationRootPaths()
getConfigurationRootPaths in interface org.revapi.configuration.Configurable@Nullable public Reader getJSONSchema(@Nonnull String configurationRootPath)
getJSONSchema in interface org.revapi.configuration.Configurablepublic void initialize(@Nonnull org.revapi.AnalysisContext analysisContext)
initialize in interface org.revapi.configuration.Configurablepublic boolean applies(@Nullable org.revapi.Element element)
applies in interface org.revapi.query.Filter<org.revapi.Element>public boolean shouldDescendInto(@Nullable Object element)
shouldDescendInto in interface org.revapi.query.Filter<org.revapi.Element>public void close()
close in interface AutoCloseableCopyright © 2015. All Rights Reserved.