public abstract class MatchingHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static com.intellij.structuralsearch.impl.matcher.handlers.MatchingHandler.ClearStateVisitor |
clearingVisitor |
protected NodeFilter |
filter |
Constructor and Description |
---|
MatchingHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canMatch(PsiElement patternNode,
PsiElement matchedNode,
MatchContext context) |
NodeFilter |
getFilter() |
PsiElement |
getPinnedNode() |
protected boolean |
isMatchSequentiallySucceeded(NodeIterator matchNodes) |
boolean |
match(PsiElement patternNode,
PsiElement matchedNode,
MatchContext context)
Matches given handler node against given value.
|
boolean |
matchInAnyOrder(NodeIterator patternNodes,
NodeIterator matchedNodes,
MatchContext context) |
boolean |
matchSequentially(NodeIterator patternNodes,
NodeIterator matchNodes,
MatchContext context) |
void |
reset() |
void |
setFilter(NodeFilter filter) |
void |
setPinnedElement(PsiElement pinnedElement) |
boolean |
shouldAdvanceTheMatchFor(PsiElement patternElement,
PsiElement matchedElement) |
boolean |
shouldAdvanceThePatternFor(PsiElement patternElement,
PsiElement matchedElement) |
protected static boolean |
validateSatisfactionOfHandlers(NodeIterator patternNodes,
MatchContext context) |
protected NodeFilter filter
protected static com.intellij.structuralsearch.impl.matcher.handlers.MatchingHandler.ClearStateVisitor clearingVisitor
public void setFilter(NodeFilter filter)
public boolean match(PsiElement patternNode, PsiElement matchedNode, MatchContext context)
matchedNode
- for matchingcontext
- of the matchingpublic boolean canMatch(PsiElement patternNode, PsiElement matchedNode, MatchContext context)
public boolean matchSequentially(NodeIterator patternNodes, NodeIterator matchNodes, MatchContext context)
protected boolean isMatchSequentiallySucceeded(NodeIterator matchNodes)
public boolean matchInAnyOrder(NodeIterator patternNodes, NodeIterator matchedNodes, MatchContext context)
protected static boolean validateSatisfactionOfHandlers(NodeIterator patternNodes, MatchContext context)
public NodeFilter getFilter()
public boolean shouldAdvanceThePatternFor(PsiElement patternElement, PsiElement matchedElement)
public boolean shouldAdvanceTheMatchFor(PsiElement patternElement, PsiElement matchedElement)
public void reset()
public PsiElement getPinnedNode()
public void setPinnedElement(PsiElement pinnedElement)