public class ElementClassFilter extends java.lang.Object implements ElementFilter
Modifier and Type | Field and Description |
---|---|
static ElementClassFilter |
CLASS |
static ElementClassFilter |
ENUM_CONST |
static ElementClassFilter |
FIELD |
static ElementClassFilter |
METHOD |
static ElementClassFilter |
PACKAGE |
static ElementClassFilter |
VARIABLE |
EMPTY_ARRAY
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public static final ElementClassFilter PACKAGE
public static final ElementClassFilter VARIABLE
public static final ElementClassFilter METHOD
public static final ElementClassFilter CLASS
public static final ElementClassFilter FIELD
public static final ElementClassFilter ENUM_CONST
public boolean isAcceptable(java.lang.Object element, PsiElement context)
ElementFilter
isAcceptable
in interface ElementFilter
element
- most often PsiElementcontext
- context of the element (if any)public boolean isClassAcceptable(java.lang.Class hintClass)
ElementFilter
isClassAcceptable
in interface ElementFilter
hintClass
- class for which we are looking for metadata