mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
589 B
Plaintext
23 lines
589 B
Plaintext
/**
|
|
* Provides classes and predicates for working with the JYaml framework.
|
|
*/
|
|
|
|
import java
|
|
|
|
/**
|
|
* The class `org.ho.yaml.Yaml` or `org.ho.yaml.YamlConfig`.
|
|
*/
|
|
class JYamlLoader extends RefType {
|
|
JYamlLoader() { this.hasQualifiedName("org.ho.yaml", ["Yaml", "YamlConfig"]) }
|
|
}
|
|
|
|
/**
|
|
* A JYaml unsafe load method, declared on either `Yaml` or `YamlConfig`.
|
|
*/
|
|
class JYamlLoaderUnsafeLoadMethod extends Method {
|
|
JYamlLoaderUnsafeLoadMethod() {
|
|
this.getDeclaringType() instanceof JYamlLoader and
|
|
this.getName() in ["load", "loadType", "loadStream", "loadStreamOfType"]
|
|
}
|
|
}
|