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

public Class SymbolInformationTypeAdapter

extends TypeAdapter<SymbolInformation>
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, java.util.List, org.eclipse.lsp4j.Location, .Position, .Range, .SymbolInformation, .SymbolKind, .SymbolTag

A type adapter for the SymbolInformation 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
private static final TypeToken<List<SymbolTag>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SymbolInformation
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
protected Boolean
protected SymbolKind
readKind(final JsonReader in)

protected Location
protected String
readName(final JsonReader in)

protected List<SymbolTag>
readTags(final JsonReader in)

public void
write(final JsonWriter out, final SymbolInformation value)

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

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

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

protected void
writeDeprecated(final JsonWriter out, final Boolean value)

protected void
writeKind(final JsonWriter out, final SymbolKind value)

protected void
writeLocation(final JsonWriter out, final Location value)

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

protected void
writePosition(final JsonWriter out, final Position value)

protected void
writeRange(final JsonWriter out, final Range value)

protected void
writeTags(final JsonWriter out, final List<SymbolTag> value)

Inherited from com.google.gson.TypeAdapter:
fromJsonfromJsonfromJsonTreenullSafetoJsontoJsontoJsonTree

Field Detail

gsonback to summary
private final Gson gson
TAGS_TYPE_TOKENback to summary
private static final TypeToken<List<SymbolTag>> TAGS_TYPE_TOKEN

Constructor Detail

SymbolInformationTypeAdapterback to summary
public SymbolInformationTypeAdapter(final Gson gson)

Method Detail

readback to summary
public SymbolInformation 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.

readContainerNameback to summary
protected String readContainerName(final JsonReader in) throws IOException
readDeprecatedback to summary
protected Boolean readDeprecated(final JsonReader in) throws IOException
readKindback to summary
protected SymbolKind readKind(final JsonReader in) throws IOException
readLocationback to summary
protected Location readLocation(final JsonReader in) throws IOException
readNameback to summary
protected String readName(final JsonReader in) throws IOException
readTagsback to summary
protected List<SymbolTag> readTags(final JsonReader in) throws IOException
writeback to summary
public void write(final JsonWriter out, final SymbolInformation 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.

writeContainerNameback to summary
protected void writeContainerName(final JsonWriter out, final String value) throws IOException
writeDeprecatedback to summary
protected void writeDeprecated(final JsonWriter out, final Boolean value) throws IOException
writeKindback to summary
protected void writeKind(final JsonWriter out, final SymbolKind value) throws IOException
writeLocationback to summary
protected void writeLocation(final JsonWriter out, final Location value) throws IOException
writeNameback to summary
protected void writeName(final JsonWriter out, final String value) throws IOException
writePositionback to summary
protected void writePosition(final JsonWriter out, final Position value) throws IOException
writeRangeback to summary
protected void writeRange(final JsonWriter out, final Range value) throws IOException
writeTagsback to summary
protected void writeTags(final JsonWriter out, final List<SymbolTag> value) throws IOException
org.eclipse.lsp4j.adapters back to summary

public Class SymbolInformationTypeAdapter.Factory

extends Object
implements TypeAdapterFactory
Class Inheritance
  • java.lang.Object
  • org.eclipse.lsp4j.adapters.SymbolInformationTypeAdapter.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.