public abstract class ElementFilterBase<T> extends java.lang.Object implements ElementFilter
EMPTY_ARRAY
Constructor and Description |
---|
ElementFilterBase(java.lang.Class<T> aClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAcceptable(java.lang.Object element,
PsiElement context)
Checks if element in given context is matched by given filter.
|
boolean |
isClassAcceptable(java.lang.Class hintClass)
Quick check if the filter acceptable for elements of given class at all.
|
protected abstract boolean |
isElementAcceptable(T element,
PsiElement context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public ElementFilterBase(java.lang.Class<T> aClass)
public final boolean isAcceptable(java.lang.Object element, PsiElement context)
ElementFilter
isAcceptable
in interface ElementFilter
element
- most often PsiElementcontext
- context of the element (if any)protected abstract boolean isElementAcceptable(T element, PsiElement context)
public boolean isClassAcceptable(java.lang.Class hintClass)
ElementFilter
isClassAcceptable
in interface ElementFilter
hintClass
- class for which we are looking for metadata