blob: db962ed8edf1c67fe430949837d59abe465aee9f [file] [log] [blame]
package com.intellij.structuralsearch.impl.matcher.filters;
import com.intellij.dupLocator.util.NodeFilter;
import com.intellij.psi.PsiElement;
/**
* Created by IntelliJ IDEA.
* User: maxim
* Date: 28.12.2003
* Time: 0:13:19
* To change this template use Options | File Templates.
*/
public class CompositeFilter implements NodeFilter {
private final NodeFilter first;
private final NodeFilter second;
protected boolean result;
public boolean accepts(PsiElement element) {
return first.accepts(element) ||
second.accepts(element);
}
public CompositeFilter(NodeFilter _first, NodeFilter _second) {
first = _first;
second = _second;
}
}