@@ -8,7 +8,7 @@ import semmle.code.java.Type
8
8
* The interface `javax.servlet.ServletRequest` or
9
9
* `javax.servlet.http.HttpServletRequest`.
10
10
*/
11
- library class ServletRequest extends RefType {
11
+ class ServletRequest extends RefType {
12
12
ServletRequest ( ) {
13
13
this .hasQualifiedName ( "javax.servlet" , "ServletRequest" ) or
14
14
this instanceof HttpServletRequest
@@ -18,15 +18,15 @@ library class ServletRequest extends RefType {
18
18
/**
19
19
* The interface `javax.servlet.http.HttpServletRequest`.
20
20
*/
21
- library class HttpServletRequest extends RefType {
21
+ class HttpServletRequest extends RefType {
22
22
HttpServletRequest ( ) { this .hasQualifiedName ( "javax.servlet.http" , "HttpServletRequest" ) }
23
23
}
24
24
25
25
/**
26
26
* The method `getParameter(String)` or `getParameterValues(String)`
27
27
* declared in `javax.servlet.ServletRequest`.
28
28
*/
29
- library class ServletRequestGetParameterMethod extends Method {
29
+ class ServletRequestGetParameterMethod extends Method {
30
30
ServletRequestGetParameterMethod ( ) {
31
31
this .getDeclaringType ( ) instanceof ServletRequest and
32
32
(
@@ -41,7 +41,7 @@ library class ServletRequestGetParameterMethod extends Method {
41
41
/**
42
42
* The method `getParameterNames()` declared in `javax.servlet.ServletRequest`.
43
43
*/
44
- library class ServletRequestGetParameterNamesMethod extends Method {
44
+ class ServletRequestGetParameterNamesMethod extends Method {
45
45
ServletRequestGetParameterNamesMethod ( ) {
46
46
this .getDeclaringType ( ) instanceof ServletRequest and
47
47
this .hasName ( "getParameterNames" ) and
@@ -52,7 +52,7 @@ library class ServletRequestGetParameterNamesMethod extends Method {
52
52
/**
53
53
* The method `getParameterMap()` declared in `javax.servlet.ServletRequest`.
54
54
*/
55
- library class ServletRequestGetParameterMapMethod extends Method {
55
+ class ServletRequestGetParameterMapMethod extends Method {
56
56
ServletRequestGetParameterMapMethod ( ) {
57
57
this .getDeclaringType ( ) instanceof ServletRequest and
58
58
this .hasName ( "getParameterMap" ) and
@@ -63,7 +63,7 @@ library class ServletRequestGetParameterMapMethod extends Method {
63
63
/**
64
64
* The method `getQueryString()` declared in `javax.servlet.http.HttpServletRequest`.
65
65
*/
66
- library class HttpServletRequestGetQueryStringMethod extends Method {
66
+ class HttpServletRequestGetQueryStringMethod extends Method {
67
67
HttpServletRequestGetQueryStringMethod ( ) {
68
68
this .getDeclaringType ( ) instanceof HttpServletRequest and
69
69
this .hasName ( "getQueryString" ) and
@@ -85,7 +85,7 @@ class HttpServletRequestGetPathMethod extends Method {
85
85
/**
86
86
* The method `getHeader(String)` declared in `javax.servlet.http.HttpServletRequest`.
87
87
*/
88
- library class HttpServletRequestGetHeaderMethod extends Method {
88
+ class HttpServletRequestGetHeaderMethod extends Method {
89
89
HttpServletRequestGetHeaderMethod ( ) {
90
90
this .getDeclaringType ( ) instanceof HttpServletRequest and
91
91
this .hasName ( "getHeader" ) and
@@ -97,7 +97,7 @@ library class HttpServletRequestGetHeaderMethod extends Method {
97
97
/**
98
98
* The method `getHeaders(String)` declared in `javax.servlet.http.HttpServletRequest`.
99
99
*/
100
- library class HttpServletRequestGetHeadersMethod extends Method {
100
+ class HttpServletRequestGetHeadersMethod extends Method {
101
101
HttpServletRequestGetHeadersMethod ( ) {
102
102
this .getDeclaringType ( ) instanceof HttpServletRequest and
103
103
this .hasName ( "getHeaders" ) and
@@ -109,7 +109,7 @@ library class HttpServletRequestGetHeadersMethod extends Method {
109
109
/**
110
110
* The method `getHeaderNames()` declared in `javax.servlet.http.HttpServletRequest`.
111
111
*/
112
- library class HttpServletRequestGetHeaderNamesMethod extends Method {
112
+ class HttpServletRequestGetHeaderNamesMethod extends Method {
113
113
HttpServletRequestGetHeaderNamesMethod ( ) {
114
114
this .getDeclaringType ( ) instanceof HttpServletRequest and
115
115
this .hasName ( "getHeaderNames" ) and
@@ -145,7 +145,7 @@ class HttpServletRequestGetRequestURIMethod extends Method {
145
145
/**
146
146
* The method `getRemoteUser()` declared in `javax.servlet.http.HttpServletRequest`.
147
147
*/
148
- library class HttpServletRequestGetRemoteUserMethod extends Method {
148
+ class HttpServletRequestGetRemoteUserMethod extends Method {
149
149
HttpServletRequestGetRemoteUserMethod ( ) {
150
150
this .getDeclaringType ( ) instanceof HttpServletRequest and
151
151
this .hasName ( "getRemoteUser" ) and
@@ -156,7 +156,7 @@ library class HttpServletRequestGetRemoteUserMethod extends Method {
156
156
/**
157
157
* The method `getInputStream()` or `getReader()` declared in `javax.servlet.ServletRequest`.
158
158
*/
159
- library class ServletRequestGetBodyMethod extends Method {
159
+ class ServletRequestGetBodyMethod extends Method {
160
160
ServletRequestGetBodyMethod ( ) {
161
161
this .getDeclaringType ( ) instanceof ServletRequest and
162
162
( this .hasName ( "getInputStream" ) or this .hasName ( "getReader" ) )
@@ -239,14 +239,14 @@ class ServletResponseGetOutputStreamMethod extends Method {
239
239
}
240
240
241
241
/** The class `javax.servlet.http.Cookie`. */
242
- library class TypeCookie extends Class {
242
+ class TypeCookie extends Class {
243
243
TypeCookie ( ) { this .hasQualifiedName ( "javax.servlet.http" , "Cookie" ) }
244
244
}
245
245
246
246
/**
247
247
* The method `getValue(String)` declared in `javax.servlet.http.Cookie`.
248
248
*/
249
- library class CookieGetValueMethod extends Method {
249
+ class CookieGetValueMethod extends Method {
250
250
CookieGetValueMethod ( ) {
251
251
this .getDeclaringType ( ) instanceof TypeCookie and
252
252
this .hasName ( "getValue" ) and
@@ -257,7 +257,7 @@ library class CookieGetValueMethod extends Method {
257
257
/**
258
258
* The method `getName()` declared in `javax.servlet.http.Cookie`.
259
259
*/
260
- library class CookieGetNameMethod extends Method {
260
+ class CookieGetNameMethod extends Method {
261
261
CookieGetNameMethod ( ) {
262
262
this .getDeclaringType ( ) instanceof TypeCookie and
263
263
this .hasName ( "getName" ) and
@@ -269,7 +269,7 @@ library class CookieGetNameMethod extends Method {
269
269
/**
270
270
* The method `getComment()` declared in `javax.servlet.http.Cookie`.
271
271
*/
272
- library class CookieGetCommentMethod extends Method {
272
+ class CookieGetCommentMethod extends Method {
273
273
CookieGetCommentMethod ( ) {
274
274
this .getDeclaringType ( ) instanceof TypeCookie and
275
275
this .hasName ( "getComment" ) and
0 commit comments