File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,22 @@ class TypeRegexPattern extends Class {
7
7
TypeRegexPattern ( ) { this .hasQualifiedName ( "java.util.regex" , "Pattern" ) }
8
8
}
9
9
10
+ /** The `quote` method of the `java.util.regex.Pattern` class. */
11
+ class PatternQuoteMethod extends Method {
12
+ PatternQuoteMethod ( ) {
13
+ this .getDeclaringType ( ) instanceof TypeRegexPattern and
14
+ this .hasName ( [ "quote" ] )
15
+ }
16
+ }
17
+
18
+ /** The `LITERAL` field of the `java.util.regex.Pattern` class. */
19
+ class PatternLiteral extends Field {
20
+ PatternLiteral ( ) {
21
+ this .getDeclaringType ( ) instanceof TypeRegexPattern and
22
+ this .hasName ( "LITERAL" )
23
+ }
24
+ }
25
+
10
26
private class RegexModel extends SummaryModelCsv {
11
27
override predicate row ( string s ) {
12
28
s =
Original file line number Diff line number Diff line change @@ -92,19 +92,6 @@ private class PatternRegexMethod extends Method {
92
92
}
93
93
}
94
94
95
- /** The `quote` method of the `java.util.regex.Pattern` class. */
96
- private class PatternQuoteMethod extends Method {
97
- PatternQuoteMethod ( ) { this .hasName ( [ "quote" ] ) }
98
- }
99
-
100
- /** The `LITERAL` field of the `java.util.regex.Pattern` class. */
101
- private class PatternLiteral extends Field {
102
- PatternLiteral ( ) {
103
- this .getDeclaringType ( ) instanceof TypeRegexPattern and
104
- this .hasName ( "LITERAL" )
105
- }
106
- }
107
-
108
95
/**
109
96
* The methods of the class `org.apache.commons.lang3.RegExUtils` that take
110
97
* a regular expression of type `String` as a parameter.
You can’t perform that action at this time.
0 commit comments