public class TodoFilter
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
TodoFilter() |
TodoFilter(Element element,
java.util.List<? extends TodoPattern> patterns) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(PsiTodoSearchHelper searchHelper,
PsiFile psiFile) |
void |
addTodoPattern(TodoPattern pattern)
Adds specified
pattern to the set of containing patterns. |
TodoFilter |
clone() |
boolean |
contains(TodoPattern pattern) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<TodoPattern> |
iterator() |
void |
removeTodoPattern(TodoPattern pattern)
Adds specified
pattern from the set of containing patterns. |
void |
setName(java.lang.String name) |
void |
writeExternal(Element element,
TodoPattern[] patterns) |
public TodoFilter()
public TodoFilter(Element element, java.util.List<? extends TodoPattern> patterns)
public boolean accept(PsiTodoSearchHelper searchHelper, PsiFile psiFile)
true
if and only if specified psiFile
has
TodoItem
s accepted by the filter.public java.lang.String getName()
null
string.public void setName(java.lang.String name)
public boolean contains(TodoPattern pattern)
true
if and only if filters contains specified pattern
.public void addTodoPattern(TodoPattern pattern)
pattern
to the set of containing patterns.public void removeTodoPattern(TodoPattern pattern)
pattern
from the set of containing patterns.public java.util.Iterator<TodoPattern> iterator()
public boolean isEmpty()
true
if and only if filter contains no TodoPattern
s.public void writeExternal(Element element, TodoPattern[] patterns)
element
- in which all data will be storedpatterns
- all available patternspublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public TodoFilter clone()
clone
in class java.lang.Object