Top Description Inners Fields Constructors Methods
org.eclipse.lsp4j.adapters

public Class VersionedTextDocumentIdentifierTypeAdapter

extends TypeAdapter<VersionedTextDocumentIdentifier>
Class Inheritance
Annotations
@SuppressWarnings:all
Imports
com.google.gson.Gson, .TypeAdapter, .TypeAdapterFactory, com.google.gson.reflect.TypeToken, com.google.gson.stream.JsonReader, .JsonToken, .JsonWriter, java.io.IOException, org.eclipse.lsp4j.VersionedTextDocumentIdentifier

A type adapter for the VersionedTextDocumentIdentifier protocol type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Gson

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public VersionedTextDocumentIdentifier
read(final JsonReader in)

Implements abstract com.google.gson.TypeAdapter.read.

Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object.

protected String
readUri(final JsonReader in)

protected Integer
public void
write(final JsonWriter out, final VersionedTextDocumentIdentifier value)

Implements abstract com.google.gson.TypeAdapter.write.

Writes one JSON value (an array, object, string, number, boolean or null) for value.

protected void
writeUri(final JsonWriter out, final String value)

protected void
writeVersion(final JsonWriter out, final Integer value)

Inherited from com.google.gson.TypeAdapter:
fromJsonfromJsonfromJsonTreenullSafetoJsontoJsontoJsonTree

Field Detail

gsonback to summary
private final Gson gson

Constructor Detail

VersionedTextDocumentIdentifierTypeAdapterback to summary
public VersionedTextDocumentIdentifierTypeAdapter(final Gson gson)

Method Detail

readback to summary
public VersionedTextDocumentIdentifier read(final JsonReader in) throws IOException

Implements abstract com.google.gson.TypeAdapter.read.

Doc from com.google.gson.TypeAdapter.read.

Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.

readUriback to summary
protected String readUri(final JsonReader in) throws IOException
readVersionback to summary
protected Integer readVersion(final JsonReader in) throws IOException
writeback to summary
public void write(final JsonWriter out, final VersionedTextDocumentIdentifier value) throws IOException

Implements abstract com.google.gson.TypeAdapter.write.

Doc from com.google.gson.TypeAdapter.write.

Writes one JSON value (an array, object, string, number, boolean or null) for value.

writeUriback to summary
protected void writeUri(final JsonWriter out, final String value) throws IOException
writeVersionback to summary
protected void writeVersion(final JsonWriter out, final Integer value) throws IOException
org.eclipse.lsp4j.adapters back to summary

public Class VersionedTextDocumentIdentifierTypeAdapter.Factory

extends Object
implements TypeAdapterFactory
Class Inheritance
  • java.lang.Object
  • org.eclipse.lsp4j.adapters.VersionedTextDocumentIdentifierTypeAdapter.Factory
All Implemented Interfaces
com.google.gson.TypeAdapterFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> TypeAdapter<T>
create(final Gson gson, final TypeToken<T> typeToken)

Implements com.google.gson.TypeAdapterFactory.create.

Returns a type adapter for type, or null if this factory doesn't support type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

createback to summary
public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> typeToken)

Implements com.google.gson.TypeAdapterFactory.create.

Doc from com.google.gson.TypeAdapterFactory.create.

Returns a type adapter for type, or null if this factory doesn't support type.