@@ -147,30 +147,60 @@ class LDAPEscape extends DataFlow::Node {
147
147
DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
148
148
}
149
149
150
+ /** Provides a class for modeling NoSQL execution APIs. */
150
151
module NoSQLQuery {
152
+ /**
153
+ * A data-flow node that executes NoSQL queries.
154
+ *
155
+ * Extend this class to model new APIs. If you want to refine existing API models,
156
+ * extend `NoSQLQuery` instead.
157
+ */
151
158
abstract class Range extends DataFlow:: Node {
159
+ /** Gets the argument that specifies the NoSQL query to be executed. */
152
160
abstract DataFlow:: Node getQuery ( ) ;
153
161
}
154
162
}
155
163
164
+ /**
165
+ * A data-flow node that executes NoSQL queries.
166
+ *
167
+ * Extend this class to refine existing API models. If you want to model new APIs,
168
+ * extend `NoSQLQuery::Range` instead.
169
+ */
156
170
class NoSQLQuery extends DataFlow:: Node {
157
171
NoSQLQuery:: Range range ;
158
172
159
173
NoSQLQuery ( ) { this = range }
160
174
175
+ /** Gets the argument that specifies the NoSQL query to be executed. */
161
176
DataFlow:: Node getQuery ( ) { result = range .getQuery ( ) }
162
177
}
163
178
179
+ /** Provides classes for modeling NoSQL sanitization-related APIs. */
164
180
module NoSQLSanitizer {
181
+ /**
182
+ * A data-flow node that collects functions sanitizing NoSQL queries.
183
+ *
184
+ * Extend this class to model new APIs. If you want to refine existing API models,
185
+ * extend `NoSQLSanitizer` instead.
186
+ */
165
187
abstract class Range extends DataFlow:: Node {
188
+ /** Gets the argument that specifies the NoSQL query to be sanitized. */
166
189
abstract DataFlow:: Node getAnInput ( ) ;
167
190
}
168
191
}
169
192
193
+ /**
194
+ * A data-flow node that collects functions sanitizing NoSQL queries.
195
+ *
196
+ * Extend this class to model new APIs. If you want to refine existing API models,
197
+ * extend `NoSQLSanitizer::Range` instead.
198
+ */
170
199
class NoSQLSanitizer extends DataFlow:: Node {
171
200
NoSQLSanitizer:: Range range ;
172
201
173
202
NoSQLSanitizer ( ) { this = range }
174
203
204
+ /** Gets the argument that specifies the NoSQL query to be sanitized. */
175
205
DataFlow:: Node getAnInput ( ) { result = range .getAnInput ( ) }
176
206
}
0 commit comments