Java: Adjust reference to static method and add test.

This commit is contained in:
Anders Schack-Mulligen
2020-10-15 15:14:33 +02:00
parent 80ee92ae97
commit 4be731d2ab
11 changed files with 348 additions and 8 deletions

View File

@@ -5,18 +5,14 @@
import java
/**
* The class `com.alibaba.fastjson.JSON` or `com.alibaba.fastjson.JSONObject`.
* The class `com.alibaba.fastjson.JSON`.
*/
class FastJson extends RefType {
FastJson() {
this.hasQualifiedName("com.alibaba.fastjson", "JSON") or
this.hasQualifiedName("com.alibaba.fastjson", "JSONObject")
}
FastJson() { this.hasQualifiedName("com.alibaba.fastjson", "JSON") }
}
/**
* A FastJson parse method. This is either `parse` or `parseObject` on either
* `com.alibaba.fastjson.JSON` or `com.alibaba.fastjson.JSONObject`.
* A FastJson parse method. This is either `JSON.parse` or `JSON.parseObject`.
*/
class FastJsonParseMethod extends Method {
FastJsonParseMethod() {