类 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.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    This factory should not be registered with a GsonBuilder because it always matches.
  • 构造器概要

    构造器
    构造器
    说明
    JsonElementTypeAdapter(com.google.gson.Gson gson)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    com.google.gson.JsonElement
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, Object value)
     

    从类继承的方法 com.google.gson.TypeAdapter

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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • JsonElementTypeAdapter

      public JsonElementTypeAdapter(com.google.gson.Gson gson)
  • 方法详细资料

    • read

      public com.google.gson.JsonElement read(com.google.gson.stream.JsonReader in) throws IOException
      指定者:
      read 在类中 com.google.gson.TypeAdapter<Object>
      抛出:
      IOException
    • write

      public void write(com.google.gson.stream.JsonWriter out, Object value) throws IOException
      指定者:
      write 在类中 com.google.gson.TypeAdapter<Object>
      抛出:
      IOException