Search in sources :

Example 1 with SimpleHandler

use of com.intellij.structuralsearch.impl.matcher.handlers.SimpleHandler in project intellij-community by JetBrains.

the class CompiledPattern method getHandler.

public MatchingHandler getHandler(PsiElement node) {
    if (node == last) {
        return lastHandler;
    }
    MatchingHandler handler = handlers.get(node);
    if (handler == null) {
        handler = new SimpleHandler();
        setHandler(node, handler);
    }
    last = node;
    lastHandler = handler;
    return handler;
}
Also used : MatchingHandler(com.intellij.structuralsearch.impl.matcher.handlers.MatchingHandler) SimpleHandler(com.intellij.structuralsearch.impl.matcher.handlers.SimpleHandler)

Aggregations

MatchingHandler (com.intellij.structuralsearch.impl.matcher.handlers.MatchingHandler)1 SimpleHandler (com.intellij.structuralsearch.impl.matcher.handlers.SimpleHandler)1