public class ExprTypePredicate extends MatchPredicate
Constructor and Description |
---|
ExprTypePredicate(java.lang.String type,
java.lang.String baseName,
boolean withinHierarchy,
boolean caseSensitiveMatch,
boolean target,
boolean regex) |
Modifier and Type | Method and Description |
---|---|
protected PsiType |
evalType(PsiExpression match,
MatchContext context) |
boolean |
match(PsiElement match,
int start,
int end,
MatchContext context)
Matches given node against this predicate.
|
match
public ExprTypePredicate(java.lang.String type, java.lang.String baseName, boolean withinHierarchy, boolean caseSensitiveMatch, boolean target, boolean regex)
public boolean match(PsiElement match, int start, int end, MatchContext context)
MatchPredicate
match
in class MatchPredicate
match
- for matchingcontext
- of the matchingprotected PsiType evalType(PsiExpression match, MatchContext context)