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

public Class WorkDoneProgressNotificationAdapter

extends TypeAdapter<WorkDoneProgressNotification>
Class Inheritance
Imports
java.io.EOFException, .IOException, org.eclipse.lsp4j.WorkDoneProgressBegin, .WorkDoneProgressEnd, .WorkDoneProgressKind, .WorkDoneProgressNotification, .WorkDoneProgressReport, com.google.gson.Gson, .JsonParseException, .JsonSyntaxException, .TypeAdapter, .TypeAdapterFactory, com.google.gson.reflect.TypeToken, com.google.gson.stream.JsonReader, .JsonToken, .JsonWriter, .MalformedJsonException

A type adapter for class which implements WorkDoneProgressNotification interface.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private WorkDoneProgressNotification
createNotification(String kind, String message, String title, Boolean cancellable, Integer percentage)

public WorkDoneProgressNotification
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, WorkDoneProgressNotification notification)

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

Constructor Detail

WorkDoneProgressNotificationAdapterback to summary
public WorkDoneProgressNotificationAdapter()

Method Detail

createNotificationback to summary
private WorkDoneProgressNotification createNotification(String kind, String message, String title, Boolean cancellable, Integer percentage) throws MalformedJsonException
readback to summary
public WorkDoneProgressNotification 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, WorkDoneProgressNotification notification) 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
org.eclipse.lsp4j.adapters back to summary

public Class WorkDoneProgressNotificationAdapter.Factory

extends Object
implements TypeAdapterFactory
Class Inheritance
  • java.lang.Object
  • org.eclipse.lsp4j.adapters.WorkDoneProgressNotificationAdapter.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(Gson gson, 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(Gson gson, 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.

Annotations
@SuppressWarnings:unchecked
@Override