Package org.revapi.simple
Class SimpleElementFilter
- java.lang.Object
-
- org.revapi.simple.SimpleConfigurable
-
- org.revapi.simple.SimpleElementFilter
-
- All Implemented Interfaces:
AutoCloseable
,Configurable
,ElementFilter
,Filter<Element<?>>
,TreeFilterProvider
@Deprecated public abstract class SimpleElementFilter extends SimpleConfigurable implements ElementFilter
Deprecated.useIndependentTreeFilter
or some otherTreeFilter
instead- Since:
- 0.4.0
- Author:
- Lukas Krejci
-
-
Constructor Summary
Constructors Constructor Description SimpleElementFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
applies(Element<?> element)
Deprecated.If an element in a forest is of compatible type, does the filter apply to it?boolean
shouldDescendInto(Object element)
Deprecated.Should the forest traversal descend into the provided element? It is not guaranteed that the element is of the type required by this parameter, but its children might be.-
Methods inherited from class org.revapi.simple.SimpleConfigurable
close, getJSONSchema, initialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.revapi.configuration.Configurable
getExtensionId, getJSONSchema, initialize
-
Methods inherited from interface org.revapi.ElementFilter
filterFor
-
-
-
-
Method Detail
-
applies
public boolean applies(@Nullable Element<?> element)
Deprecated.Description copied from interface:Filter
If an element in a forest is of compatible type, does the filter apply to it?
-
shouldDescendInto
public boolean shouldDescendInto(@Nullable Object element)
Deprecated.Description copied from interface:Filter
Should the forest traversal descend into the provided element? It is not guaranteed that the element is of the type required by this parameter, but its children might be.Therefore the filter is given a chance to influence the decision even for elements of types that it is not declared to filter.
- Specified by:
shouldDescendInto
in interfaceFilter<Element<?>>
- Parameters:
element
- the element to be descended into- Returns:
- true if forest traversal should descend into the element, false otherwise
-
-