public class PlainTextFilter extends java.lang.Object implements ElementFilter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
myValue |
EMPTY_ARRAY
Constructor and Description |
---|
PlainTextFilter(java.lang.String... values) |
PlainTextFilter(java.lang.String value1,
java.lang.String value2) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTextByElement(java.lang.Object element) |
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.
|
java.lang.String |
toString() |
public PlainTextFilter(java.lang.String... values)
public PlainTextFilter(java.lang.String value1, java.lang.String value2)
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 java.lang.String getTextByElement(java.lang.Object element)
public java.lang.String toString()
toString
in interface ElementFilter
toString
in class java.lang.Object