blob: 4d1f9a852940cc710cb0ec99ed17c083ba75657d [file] [log] [blame]
package com.intellij.structuralsearch.impl.matcher.handlers;
import com.intellij.psi.PsiElement;
import com.intellij.structuralsearch.impl.matcher.MatchContext;
/**
* Search handler for symbol search
*/
public class SymbolHandler extends MatchingHandler {
private final SubstitutionHandler handler;
public SymbolHandler(SubstitutionHandler handler) {
this.handler = handler;
}
public boolean match(PsiElement patternNode, PsiElement matchedNode, MatchContext context) {
// there is no need to do filtering since this is delegate of Substituion handler
return handler.handle(matchedNode,context);
}
}