@@ -13,21 +13,7 @@ private import codeql.threatmodels.ThreatModels
13
13
* Extend this class to refine existing API models. If you want to model new APIs,
14
14
* extend `ThreatModelSource::Range` instead.
15
15
*/
16
- class ThreatModelSource extends DataFlow:: Node instanceof ThreatModelSource:: Range {
17
- /**
18
- * Gets a string that represents the source kind with respect to threat modeling.
19
- *
20
- * See
21
- * - https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst
22
- * - https://github.com/github/codeql/blob/main/shared/threat-models/ext/threat-model-grouping.model.yml
23
- */
24
- string getThreatModel ( ) { result = super .getThreatModel ( ) }
25
-
26
- /**
27
- * Gets a string that describes the type of this threat-model source.
28
- */
29
- string getSourceType ( ) { result = super .getSourceType ( ) }
30
- }
16
+ final class ThreatModelSource = ThreatModelSource:: Range ;
31
17
32
18
/**
33
19
* Provides a class for modeling new sources for specific threat-models.
@@ -67,12 +53,7 @@ class ActiveThreatModelSource extends ThreatModelSource {
67
53
* Extend this class to refine existing API models. If you want to model new APIs,
68
54
* extend `SqlConstruction::Range` instead.
69
55
*/
70
- class SqlConstruction extends DataFlow:: Node instanceof SqlConstruction:: Range {
71
- /**
72
- * Gets the argument that specifies the SQL statements to be constructed.
73
- */
74
- DataFlow:: Node getSql ( ) { result = super .getSql ( ) }
75
- }
56
+ final class SqlConstruction = SqlConstruction:: Range ;
76
57
77
58
/**
78
59
* Provides a class for modeling new SQL execution APIs.
@@ -98,12 +79,7 @@ module SqlConstruction {
98
79
* Extend this class to refine existing API models. If you want to model new APIs,
99
80
* extend `SqlExecution::Range` instead.
100
81
*/
101
- class SqlExecution extends DataFlow:: Node instanceof SqlExecution:: Range {
102
- /**
103
- * Gets the argument that specifies the SQL statements to be executed.
104
- */
105
- DataFlow:: Node getSql ( ) { result = super .getSql ( ) }
106
- }
82
+ final class SqlExecution = SqlExecution:: Range ;
107
83
108
84
/**
109
85
* Provides a class for modeling new SQL execution APIs.
@@ -123,7 +99,7 @@ module SqlExecution {
123
99
/**
124
100
* A data-flow node that performs SQL sanitization.
125
101
*/
126
- class SqlSanitization extends DataFlow :: Node instanceof SqlSanitization:: Range { }
102
+ final class SqlSanitization = SqlSanitization:: Range ;
127
103
128
104
/**
129
105
* Provides a class for modeling new SQL sanitization APIs.
0 commit comments