Class JsonElementTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Object>
org.javacs.lsp.adapters.JsonElementTypeAdapter

public class JsonElementTypeAdapter extends com.google.gson.TypeAdapter<Object>
Copied from lsp4j.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    This 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

    Modifier and Type
    Method
    Description
    com.google.gson.JsonElement
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, Object value)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonElementTypeAdapter

      public JsonElementTypeAdapter(com.google.gson.Gson gson)
  • Method Details

    • read

      public com.google.gson.JsonElement read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Object>
      Throws:
      IOException
    • write

      public void write(com.google.gson.stream.JsonWriter out, Object value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Object>
      Throws:
      IOException