mirror of
https://github.com/github/codeql.git
synced 2026-01-22 02:44:45 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
/**
|
|
* Provides classes and predicates for working with the Jodd JSON framework.
|
|
*/
|
|
|
|
import java
|
|
|
|
/** The class `jodd.json.Parser`. */
|
|
class JoddJsonParser extends RefType {
|
|
JoddJsonParser() { this.hasQualifiedName("jodd.json", "JsonParser") }
|
|
}
|
|
|
|
/** A `JsonParser.parse*` deserialization method. */
|
|
class JoddJsonParseMethod extends Method {
|
|
JoddJsonParseMethod() {
|
|
this.getDeclaringType() instanceof JoddJsonParser and
|
|
this.getName().matches("parse%")
|
|
}
|
|
}
|
|
|
|
/** The `JsonParser.setClassMetadataName` method. */
|
|
class SetClassMetadataNameMethod extends Method {
|
|
SetClassMetadataNameMethod() {
|
|
this.getDeclaringType() instanceof JoddJsonParser and
|
|
this.hasName("setClassMetadataName")
|
|
}
|
|
}
|
|
|
|
/** The `JsonParser.withClassMetadata` method. */
|
|
class WithClassMetadataMethod extends Method {
|
|
WithClassMetadataMethod() {
|
|
this.getDeclaringType() instanceof JoddJsonParser and
|
|
this.hasName("withClassMetadata")
|
|
}
|
|
}
|
|
|
|
/** The `JsonParser.allowClass` method. */
|
|
class AllowClassMethod extends Method {
|
|
AllowClassMethod() {
|
|
this.getDeclaringType() instanceof JoddJsonParser and
|
|
this.hasName("allowClass")
|
|
}
|
|
}
|