Top Fields Constructors Methods
org.eclipse.lsp4j.adapters

public Class WorkspaceSymbolLocationTypeAdapter

extends Object
implements TypeAdapterFactory
Class Inheritance
All Implemented Interfaces
com.google.gson.TypeAdapterFactory
Imports
org.eclipse.lsp4j.Location, .WorkspaceSymbolLocation, org.eclipse.lsp4j.jsonrpc.json.adapters.EitherTypeAdapter, .EitherTypeAdapter.PropertyChecker, org.eclipse.lsp4j.jsonrpc.messages.Either, com.google.gson.Gson, .TypeAdapter, .TypeAdapterFactory, com.google.gson.reflect.TypeToken

Field Summary

Modifier and TypeField and Description
private static final TypeToken<Either<Location, WorkspaceSymbolLocation>>

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

Field Detail

ELEMENT_TYPEback to summary
private static final TypeToken<Either<Location, WorkspaceSymbolLocation>> ELEMENT_TYPE

Constructor Detail

WorkspaceSymbolLocationTypeAdapterback to summary
public WorkspaceSymbolLocationTypeAdapter()

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