Class HoverTypeAdapter


  • public class HoverTypeAdapter
    extends com.google.gson.TypeAdapter<Hover>
    A type adapter for the Hover protocol type.
    • Constructor Summary

      Constructors 
      Constructor Description
      HoverTypeAdapter​(com.google.gson.Gson gson)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Hover read​(com.google.gson.stream.JsonReader in)  
      protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​MarkedString>>,​MarkupContent> readContents​(com.google.gson.stream.JsonReader in)  
      protected Range readRange​(com.google.gson.stream.JsonReader in)  
      void write​(com.google.gson.stream.JsonWriter out, Hover value)  
      protected void writeContents​(com.google.gson.stream.JsonWriter out, org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​MarkedString>>,​MarkupContent> contents)  
      protected void writeRange​(com.google.gson.stream.JsonWriter out, Range 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

      • HoverTypeAdapter

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

      • readContents

        protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​MarkedString>>,​MarkupContent> readContents​(com.google.gson.stream.JsonReader in)
                                                                                                                                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeContents

        protected void writeContents​(com.google.gson.stream.JsonWriter out,
                                     org.eclipse.lsp4j.jsonrpc.messages.Either<java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,​MarkedString>>,​MarkupContent> contents)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • read

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

        protected Range readRange​(com.google.gson.stream.JsonReader in)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • write

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

        protected void writeRange​(com.google.gson.stream.JsonWriter out,
                                  Range value)
                           throws java.io.IOException
        Throws:
        java.io.IOException