public final class RegExpPredicate extends MatchPredicate
Modifier and Type | Class and Description |
---|---|
static interface |
RegExpPredicate.NodeTextGenerator |
Constructor and Description |
---|
RegExpPredicate(java.lang.String regexp,
boolean caseSensitive,
java.lang.String _baseHandlerName,
boolean _wholeWords,
boolean _target) |
Modifier and Type | Method and Description |
---|---|
boolean |
couldBeOptimized() |
boolean |
doMatch(java.lang.String text,
MatchContext context,
PsiElement matchedElement) |
java.lang.String |
getRegExp() |
boolean |
isWholeWords() |
boolean |
match(PsiElement matchedNode,
int start,
int end,
MatchContext context)
Attempts to match given handler node against given node.
|
void |
setMultiline(boolean b) |
void |
setNodeTextGenerator(RegExpPredicate.NodeTextGenerator nodeTextGenerator) |
match
public RegExpPredicate(java.lang.String regexp, boolean caseSensitive, java.lang.String _baseHandlerName, boolean _wholeWords, boolean _target)
public boolean couldBeOptimized()
public java.lang.String getRegExp()
public boolean match(PsiElement matchedNode, int start, int end, MatchContext context)
match
in class MatchPredicate
matchedNode
- for matchingcontext
- of the matchingpublic boolean doMatch(java.lang.String text, MatchContext context, PsiElement matchedElement)
public void setNodeTextGenerator(RegExpPredicate.NodeTextGenerator nodeTextGenerator)
public void setMultiline(boolean b)
public boolean isWholeWords()