forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJabsorb.qll
More file actions
26 lines (22 loc) · 747 Bytes
/
Copy pathJabsorb.qll
File metadata and controls
26 lines (22 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* Provides classes for working with the Jabsorb JSON-RPC ORB framework.
*/
import java
/** The class `org.jabsorb.JSONSerializer`. */
class JabsorbSerializer extends RefType {
JabsorbSerializer() { this.hasQualifiedName("org.jabsorb", "JSONSerializer") }
}
/** The deserialization method `unmarshall`. */
class JabsorbUnmarshallMethod extends Method {
JabsorbUnmarshallMethod() {
this.getDeclaringType().getASupertype*() instanceof JabsorbSerializer and
this.getName() = "unmarshall"
}
}
/** The deserialization method `fromJSON`. */
class JabsorbFromJsonMethod extends Method {
JabsorbFromJsonMethod() {
this.getDeclaringType().getASupertype*() instanceof JabsorbSerializer and
this.getName() = "fromJSON"
}
}