Class InitializeParamsTypeAdapter


  • public class InitializeParamsTypeAdapter
    extends com.google.gson.TypeAdapter<InitializeParams>
    A type adapter for the InitializeParams protocol type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      InitializeParams read​(com.google.gson.stream.JsonReader in)  
      protected ClientCapabilities readCapabilities​(com.google.gson.stream.JsonReader in)  
      protected ClientInfo readClientInfo​(com.google.gson.stream.JsonReader in)  
      protected java.lang.Object readInitializationOptions​(com.google.gson.stream.JsonReader in)  
      protected java.lang.String readLocale​(com.google.gson.stream.JsonReader in)  
      protected java.lang.Integer readProcessId​(com.google.gson.stream.JsonReader in)  
      protected java.lang.String readRootPath​(com.google.gson.stream.JsonReader in)  
      protected java.lang.String readRootUri​(com.google.gson.stream.JsonReader in)  
      protected java.lang.String readTrace​(com.google.gson.stream.JsonReader in)  
      protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​java.lang.Integer> readWorkDoneToken​(com.google.gson.stream.JsonReader in)  
      protected java.util.List<WorkspaceFolder> readWorkspaceFolders​(com.google.gson.stream.JsonReader in)  
      void write​(com.google.gson.stream.JsonWriter out, InitializeParams value)  
      protected void writeCapabilities​(com.google.gson.stream.JsonWriter out, ClientCapabilities value)  
      protected void writeClientInfo​(com.google.gson.stream.JsonWriter out, ClientInfo value)  
      protected void writeInitializationOptions​(com.google.gson.stream.JsonWriter out, java.lang.Object value)  
      protected void writeLocale​(com.google.gson.stream.JsonWriter out, java.lang.String value)  
      protected void writeProcessId​(com.google.gson.stream.JsonWriter out, java.lang.Integer value)  
      protected void writeRootPath​(com.google.gson.stream.JsonWriter out, java.lang.String value)  
      protected void writeRootUri​(com.google.gson.stream.JsonWriter out, java.lang.String value)  
      protected void writeTrace​(com.google.gson.stream.JsonWriter out, java.lang.String value)  
      protected void writeWorkDoneToken​(com.google.gson.stream.JsonWriter out, org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​java.lang.Integer> value)  
      protected void writeWorkspaceFolders​(com.google.gson.stream.JsonWriter out, java.util.List<WorkspaceFolder> 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 Detail

      • InitializeParamsTypeAdapter

        public InitializeParamsTypeAdapter​(com.google.gson.Gson gson)
    • Method Detail

      • readInitializationOptions

        protected java.lang.Object readInitializationOptions​(com.google.gson.stream.JsonReader in)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeProcessId

        protected void writeProcessId​(com.google.gson.stream.JsonWriter out,
                                      java.lang.Integer value)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writeRootUri

        protected void writeRootUri​(com.google.gson.stream.JsonWriter out,
                                    java.lang.String value)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public InitializeParams read​(com.google.gson.stream.JsonReader in)
                              throws java.io.IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<InitializeParams>
        Throws:
        java.io.IOException
      • readWorkDoneToken

        protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​java.lang.Integer> readWorkDoneToken​(com.google.gson.stream.JsonReader in)
                                                                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readProcessId

        protected java.lang.Integer readProcessId​(com.google.gson.stream.JsonReader in)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readRootPath

        protected java.lang.String readRootPath​(com.google.gson.stream.JsonReader in)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readRootUri

        protected java.lang.String readRootUri​(com.google.gson.stream.JsonReader in)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readCapabilities

        protected ClientCapabilities readCapabilities​(com.google.gson.stream.JsonReader in)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readClientInfo

        protected ClientInfo readClientInfo​(com.google.gson.stream.JsonReader in)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readLocale

        protected java.lang.String readLocale​(com.google.gson.stream.JsonReader in)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readTrace

        protected java.lang.String readTrace​(com.google.gson.stream.JsonReader in)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readWorkspaceFolders

        protected java.util.List<WorkspaceFolder> readWorkspaceFolders​(com.google.gson.stream.JsonReader in)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(com.google.gson.stream.JsonWriter out,
                          InitializeParams value)
                   throws java.io.IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<InitializeParams>
        Throws:
        java.io.IOException
      • writeWorkDoneToken

        protected void writeWorkDoneToken​(com.google.gson.stream.JsonWriter out,
                                          org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​java.lang.Integer> value)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeRootPath

        protected void writeRootPath​(com.google.gson.stream.JsonWriter out,
                                     java.lang.String value)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInitializationOptions

        protected void writeInitializationOptions​(com.google.gson.stream.JsonWriter out,
                                                  java.lang.Object value)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeCapabilities

        protected void writeCapabilities​(com.google.gson.stream.JsonWriter out,
                                         ClientCapabilities value)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • writeClientInfo

        protected void writeClientInfo​(com.google.gson.stream.JsonWriter out,
                                       ClientInfo value)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLocale

        protected void writeLocale​(com.google.gson.stream.JsonWriter out,
                                   java.lang.String value)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTrace

        protected void writeTrace​(com.google.gson.stream.JsonWriter out,
                                  java.lang.String value)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeWorkspaceFolders

        protected void writeWorkspaceFolders​(com.google.gson.stream.JsonWriter out,
                                             java.util.List<WorkspaceFolder> value)
                                      throws java.io.IOException
        Throws:
        java.io.IOException