public class AndFilter extends java.lang.Object implements ElementFilter
EMPTY_ARRAY
Constructor and Description |
---|
AndFilter(ElementFilter... filters) |
AndFilter(ElementFilter filter1,
ElementFilter filter2) |
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 elementClass)
Quick check if the filter acceptable for elements of given class at all.
|
java.lang.String |
toString() |
public AndFilter(ElementFilter filter1, ElementFilter filter2)
public AndFilter(ElementFilter... filters)
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 elementClass)
ElementFilter
isClassAcceptable
in interface ElementFilter
elementClass
- class for which we are looking for metadatapublic java.lang.String toString()
toString
in interface ElementFilter
toString
in class java.lang.Object