Rename RegexMatch and only include expressions

This commit is contained in:
Owen Mansel-Chan
2026-02-13 22:45:23 +00:00
parent 953ff9f0d0
commit 1fefa989d7
6 changed files with 21 additions and 61 deletions

View File

@@ -171,7 +171,7 @@ class WebServiceRefAnnotation extends Annotation {
/**
* A `@javax.validation.constraints.Pattern` annotation.
*/
class PatternAnnotation extends Annotation, RegexExecutionExpr::Range {
class PatternAnnotation extends Annotation, RegexMatch::Range {
PatternAnnotation() {
this.getType()
.hasQualifiedName(["javax.validation.constraints", "jakarta.validation.constraints"],

View File

@@ -82,7 +82,7 @@ class PatternMatcherCall extends MethodCall {
}
/** A call to the `matches` method of `java.util.regex.Pattern`. */
class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range {
class PatternMatchesCall extends MethodCall, RegexMatch::Range {
PatternMatchesCall() { this.getMethod() instanceof PatternMatchesMethod }
override Expr getRegex() { result = this.getArgument(0) }
@@ -93,7 +93,7 @@ class PatternMatchesCall extends MethodCall, RegexExecutionExpr::Range {
}
/** A call to the `matches` method of `java.util.regex.Matcher`. */
class MatcherMatchesCall extends MethodCall, RegexExecutionExpr::Range {
class MatcherMatchesCall extends MethodCall, RegexMatch::Range {
MatcherMatchesCall() { this.getMethod() instanceof MatcherMatchesMethod }
/**