Package org.eclipse.lsp4j.adapters
Class VersionedTextDocumentIdentifierTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<VersionedTextDocumentIdentifier>
-
- org.eclipse.lsp4j.adapters.VersionedTextDocumentIdentifierTypeAdapter
-
public class VersionedTextDocumentIdentifierTypeAdapter extends com.google.gson.TypeAdapter<VersionedTextDocumentIdentifier>
A type adapter for the VersionedTextDocumentIdentifier protocol type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionedTextDocumentIdentifierTypeAdapter.Factory
-
Constructor Summary
Constructors Constructor Description VersionedTextDocumentIdentifierTypeAdapter(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionedTextDocumentIdentifierread(com.google.gson.stream.JsonReader in)protected java.lang.StringreadUri(com.google.gson.stream.JsonReader in)protected java.lang.IntegerreadVersion(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, VersionedTextDocumentIdentifier value)protected voidwriteUri(com.google.gson.stream.JsonWriter out, java.lang.String value)protected voidwriteVersion(com.google.gson.stream.JsonWriter out, java.lang.Integer value)
-
-
-
Method Detail
-
writeVersion
protected void writeVersion(com.google.gson.stream.JsonWriter out, java.lang.Integer value) throws java.io.IOException- Throws:
java.io.IOException
-
read
public VersionedTextDocumentIdentifier read(com.google.gson.stream.JsonReader in) throws java.io.IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<VersionedTextDocumentIdentifier>- Throws:
java.io.IOException
-
readVersion
protected java.lang.Integer readVersion(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readUri
protected java.lang.String readUri(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, VersionedTextDocumentIdentifier value) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<VersionedTextDocumentIdentifier>- Throws:
java.io.IOException
-
writeUri
protected void writeUri(com.google.gson.stream.JsonWriter out, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
-