Class JsonElementTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.lang.Object>
-
- org.eclipse.lsp4j.jsonrpc.json.adapters.JsonElementTypeAdapter
-
public class JsonElementTypeAdapter extends com.google.gson.TypeAdapter<java.lang.Object>A type adapter that reads every input into a tree ofJsonElements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonElementTypeAdapter.FactoryThis factory should not be registered with a GsonBuilder because it always matches.
-
Constructor Summary
Constructors Constructor Description JsonElementTypeAdapter(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElementread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, java.lang.Object value)
-
-
-
Method Detail
-
read
public com.google.gson.JsonElement read(com.google.gson.stream.JsonReader in) throws java.io.IOException- Specified by:
readin classcom.google.gson.TypeAdapter<java.lang.Object>- Throws:
java.io.IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, java.lang.Object value) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<java.lang.Object>- Throws:
java.io.IOException
-
-