Package org.eclipse.lsp4j.adapters
Class HoverTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Hover>
-
- org.eclipse.lsp4j.adapters.HoverTypeAdapter
-
public class HoverTypeAdapter extends com.google.gson.TypeAdapter<Hover>
A type adapter for the Hover protocol type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHoverTypeAdapter.Factory
-
Constructor Summary
Constructors Constructor Description HoverTypeAdapter(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hoverread(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 RangereadRange(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, Hover value)protected voidwriteContents(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 voidwriteRange(com.google.gson.stream.JsonWriter out, Range value)
-
-
-
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:
readin classcom.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:
writein classcom.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
-
-