added simple toString method to beans that renders stuff as json
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user