|
5 | 5 | import java |
6 | 6 |
|
7 | 7 | /** |
8 | | - * The class `org.ho.yaml.Yaml`. |
| 8 | + * The class `org.ho.yaml.Yaml` or `org.ho.yaml.YamlConfig`. |
9 | 9 | */ |
10 | | -class JYaml extends RefType { |
11 | | - JYaml() { this.hasQualifiedName("org.ho.yaml", "Yaml") } |
| 10 | +class JYamlLoader extends RefType { |
| 11 | + JYamlLoader() { this.hasQualifiedName("org.ho.yaml", ["Yaml", "YamlConfig"]) } |
12 | 12 | } |
13 | 13 |
|
14 | 14 | /** |
15 | | - * A JYaml unsafe load method. This is either `YAML.load` or |
16 | | - * `YAML.loadType` or `YAML.loadStream` or `YAML.loadStreamOfType`. |
| 15 | + * A JYaml unsafe load method, declared on either `Yaml` or `YamlConfig`. |
17 | 16 | */ |
18 | | -class JYamlUnsafeLoadMethod extends Method { |
19 | | - JYamlUnsafeLoadMethod() { |
20 | | - this.getDeclaringType() instanceof JYaml and |
21 | | - this.getName() in ["load", "loadType", "loadStream", "loadStreamOfType"] |
22 | | - } |
23 | | -} |
24 | | - |
25 | | -/** |
26 | | - * The class `org.ho.yaml.YamlConfig`. |
27 | | - */ |
28 | | -class JYamlConfig extends RefType { |
29 | | - JYamlConfig() { this.hasQualifiedName("org.ho.yaml", "YamlConfig") } |
30 | | -} |
31 | | - |
32 | | -/** |
33 | | - * A JYamlConfig unsafe load method. This is either `YamlConfig.load` or |
34 | | - * `YAML.loadType` or `YamlConfig.loadStream` or `YamlConfig.loadStreamOfType`. |
35 | | - */ |
36 | | -class JYamlConfigUnsafeLoadMethod extends Method { |
37 | | - JYamlConfigUnsafeLoadMethod() { |
38 | | - this.getDeclaringType() instanceof JYamlConfig and |
| 17 | +class JYamlLoaderUnsafeLoadMethod extends Method { |
| 18 | + JYamlLoaderUnsafeLoadMethod() { |
| 19 | + this.getDeclaringType() instanceof JYamlLoader and |
39 | 20 | this.getName() in ["load", "loadType", "loadStream", "loadStreamOfType"] |
40 | 21 | } |
41 | 22 | } |
0 commit comments