public class ModifierFilter extends ClassFilter
Modifier and Type | Field and Description |
---|---|
java.util.List<com.intellij.psi.filters.element.ModifierFilter.ModifierRestriction> |
myModifierRestrictions |
EMPTY_ARRAY
Constructor and Description |
---|
ModifierFilter(java.lang.String... modifiers) |
ModifierFilter(java.lang.String modifier,
boolean hasToBe) |
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.
|
java.lang.String |
toString() |
isClassAcceptable
public final java.util.List<com.intellij.psi.filters.element.ModifierFilter.ModifierRestriction> myModifierRestrictions
public ModifierFilter(java.lang.String modifier, boolean hasToBe)
public ModifierFilter(java.lang.String... modifiers)
public boolean isAcceptable(java.lang.Object element, PsiElement context)
ElementFilter
isAcceptable
in interface ElementFilter
isAcceptable
in class ClassFilter
element
- most often PsiElementcontext
- context of the element (if any)public java.lang.String toString()
toString
in interface ElementFilter
toString
in class ClassFilter