public class SkippingHandler extends MatchingHandler implements DelegatingHandler
clearingVisitor, filter
Constructor and Description |
---|
SkippingHandler(MatchingHandler delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMatch(PsiElement patternNode,
PsiElement matchedNode,
MatchContext context) |
MatchingHandler |
getDelegate() |
static PsiElement |
getOnlyNonWhitespaceChild(PsiElement element) |
protected 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) |
static PsiElement |
skipNodeIfNecessary(PsiElement element) |
static PsiElement |
skipNodeIfNecessary(PsiElement element,
EquivalenceDescriptor descriptor,
NodeFilter filter) |
getFilter, getPinnedNode, matchInAnyOrder, reset, setFilter, setPinnedElement, shouldAdvanceTheMatchFor, shouldAdvanceThePatternFor, validateSatisfactionOfHandlers
public SkippingHandler(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
protected boolean isMatchSequentiallySucceeded(NodeIterator matchNodes)
isMatchSequentiallySucceeded
in class MatchingHandler
public MatchingHandler getDelegate()
getDelegate
in interface DelegatingHandler
public static PsiElement getOnlyNonWhitespaceChild(PsiElement element)
public static PsiElement skipNodeIfNecessary(PsiElement element)
public static PsiElement skipNodeIfNecessary(PsiElement element, EquivalenceDescriptor descriptor, NodeFilter filter)