public final class ClassFilter extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractIncludeExcludeFilter.InclusionState |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doNothing |
protected java.util.function.Predicate<String> |
excludeTest |
protected java.util.function.Predicate<String> |
includeTest |
| Constructor and Description |
|---|
ClassFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(org.revapi.Element element) |
protected boolean |
canBeReIncluded(org.revapi.java.spi.JavaModelElement element) |
void |
close() |
protected java.util.function.Predicate<String> |
composeTest(List<String> fullMatches,
List<Pattern> patterns) |
protected boolean |
decideAnnotation(org.revapi.java.spi.JavaAnnotationElement annotation,
AbstractIncludeExcludeFilter.InclusionState parentInclusionState) |
String[] |
getConfigurationRootPaths() |
Reader |
getJSONSchema(String configurationRootPath) |
protected java.util.stream.Stream<String> |
getTestedElementRepresentations(org.revapi.java.spi.JavaModelElement element) |
void |
initialize(org.revapi.AnalysisContext analysisContext) |
boolean |
shouldDescendInto(Object element) |
protected java.util.function.Predicate<String> includeTest
protected java.util.function.Predicate<String> excludeTest
protected boolean doNothing
protected boolean canBeReIncluded(org.revapi.java.spi.JavaModelElement element)
protected java.util.stream.Stream<String> getTestedElementRepresentations(org.revapi.java.spi.JavaModelElement element)
protected java.util.function.Predicate<String> composeTest(List<String> fullMatches, List<Pattern> patterns)
public void close()
throws Exception
close in interface AutoCloseableException@Nullable public String[] getConfigurationRootPaths()
getConfigurationRootPaths in interface org.revapi.configuration.Configurablepublic 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>protected boolean decideAnnotation(org.revapi.java.spi.JavaAnnotationElement annotation,
AbstractIncludeExcludeFilter.InclusionState parentInclusionState)
Copyright © 2016 Lukas Krejci. All Rights Reserved.