public class NamespaceFilter extends java.lang.Object implements ElementFilter
EMPTY_ARRAY
Constructor and Description |
---|
NamespaceFilter(java.lang.String... namespaces) |
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 boolean |
isNamespaceAcceptable(java.lang.String ns) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public boolean isClassAcceptable(java.lang.Class hintClass)
ElementFilter
isClassAcceptable
in interface ElementFilter
hintClass
- class for which we are looking for metadatapublic boolean isAcceptable(java.lang.Object element, PsiElement context)
ElementFilter
isAcceptable
in interface ElementFilter
element
- most often PsiElementcontext
- context of the element (if any)protected boolean isNamespaceAcceptable(java.lang.String ns)