use of com.intellij.structuralsearch.impl.matcher.predicates.RegExpPredicate in project intellij-community by JetBrains.
the class MatchingHandler method findRegExpPredicate.
private static MatchPredicate findRegExpPredicate(MatchPredicate start) {
if (start == null)
return null;
if (start instanceof RegExpPredicate)
return start;
if (start instanceof BinaryPredicate) {
BinaryPredicate binary = (BinaryPredicate) start;
final MatchPredicate result = findRegExpPredicate(binary.getFirst());
if (result != null)
return result;
return findRegExpPredicate(binary.getSecond());
} else if (start instanceof NotPredicate) {
return null;
}
return null;
}
Aggregations