added simple toString method to beans that renders stuff as json

This commit is contained in:
Martin Lippert
2023-04-24 20:13:58 +02:00
parent 4b972a3ca2
commit 1af5f344ec

View File

@@ -16,6 +16,8 @@ import java.util.Set;
import org.eclipse.lsp4j.Location;
import com.google.gson.Gson;
public class Bean {
private final String name;
@@ -53,4 +55,10 @@ public class Bean {
return supertypes.contains(type);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
}