Top Inners Constructors Methods
org.eclipse.lsp4j.adapters

public Class ResourceOperationTypeAdapter

extends Object
implements TypeAdapterFactory
Class Inheritance
All Implemented Interfaces
com.google.gson.TypeAdapterFactory
Imports
java.io.IOException, org.eclipse.lsp4j.CreateFile, .DeleteFile, .RenameFile, .ResourceOperation, .ResourceOperationKind, com.google.gson.Gson, .JsonElement, .JsonObject, .JsonParseException, .JsonParser, .TypeAdapter, .TypeAdapterFactory, com.google.gson.reflect.TypeToken, com.google.gson.stream.JsonReader, .JsonWriter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

ResourceOperationTypeAdapterback to summary
public ResourceOperationTypeAdapter()

Method Detail

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

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.

Annotations
@SuppressWarnings:unchecked
@Override
org.eclipse.lsp4j.adapters back to summary

private Class ResourceOperationTypeAdapter.InnerResourceOperationTypeAdapter

extends TypeAdapter<ResourceOperation>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv TypeAdapter<CreateFile>
pack-priv TypeAdapter<DeleteFile>
pack-priv TypeAdapter<RenameFile>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ResourceOperation
read(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.

public void
write(JsonWriter out, ResourceOperation value)

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

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

Inherited from com.google.gson.TypeAdapter:
fromJsonfromJsonfromJsonTreenullSafetoJsontoJsontoJsonTree

Field Detail

createFileAdapterback to summary
pack-priv TypeAdapter<CreateFile> createFileAdapter
deleteFileAdapterback to summary
pack-priv TypeAdapter<DeleteFile> deleteFileAdapter
renameFileAdapterback to summary
pack-priv TypeAdapter<RenameFile> renameFileAdapter

Constructor Detail

InnerResourceOperationTypeAdapterback to summary
pack-priv InnerResourceOperationTypeAdapter(TypeAdapterFactory factory, Gson gson)

Method Detail

readback to summary
public ResourceOperation read(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.

Annotations
@Override
writeback to summary
public void write(JsonWriter out, ResourceOperation 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.

Annotations
@Override