package com.intellij.structuralsearch.impl.matcher.handlers; import com.intellij.psi.PsiElement; import com.intellij.structuralsearch.impl.matcher.MatchContext; /** * Root of handlers for pattern node matching. Handles simpliest type of the match. */ public abstract class MatchPredicate { /** * Matches given handler node against given value. * @param matchedNode for matching * @param context of the matching * @return true if matching was successfull and false otherwise */ public boolean match(PsiElement patternNode,PsiElement matchedNode, int start, int end, MatchContext context) { return match(patternNode,matchedNode,context); } /** * Matches given handler node against given value. * @param matchedNode for matching * @param context of the matching * @return true if matching was successfull and false otherwise */ public abstract boolean match(PsiElement patternNode,PsiElement matchedNode, MatchContext context); }