public final class LightTopLevelMatchingHandler extends MatchingHandler implements DelegatingHandler
clearingVisitor, filter
Constructor and Description |
---|
LightTopLevelMatchingHandler(MatchingHandler delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMatch(PsiElement patternNode,
PsiElement matchedNode,
MatchContext context) |
MatchingHandler |
getDelegate() |
boolean |
isMatchSequentiallySucceeded(NodeIterator matchNodes) |
boolean |
match(PsiElement patternNode,
PsiElement matchedNode,
MatchContext matchContext)
Matches given handler node against given value.
|
boolean |
matchSequentially(NodeIterator patternNodes,
NodeIterator matchNodes,
MatchContext context) |
boolean |
shouldAdvanceTheMatchFor(PsiElement patternElement,
PsiElement matchedElement) |
getFilter, getPinnedNode, matchInAnyOrder, reset, setFilter, setPinnedElement, shouldAdvanceThePatternFor, validateSatisfactionOfHandlers
public LightTopLevelMatchingHandler(MatchingHandler delegate)
public boolean match(PsiElement patternNode, PsiElement matchedNode, MatchContext matchContext)
MatchingHandler
match
in class MatchingHandler
matchedNode
- for matchingmatchContext
- of the matchingpublic boolean canMatch(PsiElement patternNode, PsiElement matchedNode, MatchContext context)
canMatch
in class MatchingHandler
public boolean matchSequentially(NodeIterator patternNodes, NodeIterator matchNodes, MatchContext context)
matchSequentially
in class MatchingHandler
public boolean isMatchSequentiallySucceeded(NodeIterator matchNodes)
isMatchSequentiallySucceeded
in class MatchingHandler
public boolean shouldAdvanceTheMatchFor(PsiElement patternElement, PsiElement matchedElement)
shouldAdvanceTheMatchFor
in class MatchingHandler
public MatchingHandler getDelegate()
getDelegate
in interface DelegatingHandler