public class MatchContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MatchContext.MatchedElementsListener |
Constructor and Description |
---|
MatchContext() |
public void addMatchedNode(PsiElement node)
public void removeMatchedNode(PsiElement node)
public void saveMatchedNodes()
public void restoreMatchedNodes()
public void clearMatchedNodes()
public void setMatcher(GlobalMatchingVisitor matcher)
public GlobalMatchingVisitor getMatcher()
public MatchOptions getOptions()
public void setOptions(MatchOptions options)
public MatchResultImpl getPreviousResult()
public MatchResultImpl getResult()
public void pushResult()
public void popResult()
public void setResult(MatchResultImpl result)
public boolean hasResult()
public CompiledPattern getPattern()
public void setPattern(CompiledPattern pattern)
public MatchResultSink getSink()
public void setSink(MatchResultSink sink)
public void clear()
public boolean shouldRecursivelyMatch()
public void setShouldRecursivelyMatch(boolean shouldRecursivelyMatch)
public void pushMatchedElementsListener(MatchContext.MatchedElementsListener matchedElementsListener)
public void popMatchedElementsListener()
public void notifyMatchedElements(java.util.Collection<PsiElement> matchedElements)
public void dispatchMatched()