Package org.eclipse.lsp4j.adapters
Class InitializeParamsTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<InitializeParams>
-
- org.eclipse.lsp4j.adapters.InitializeParamsTypeAdapter
-
public class InitializeParamsTypeAdapter extends com.google.gson.TypeAdapter<InitializeParams>
A type adapter for the InitializeParams protocol type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInitializeParamsTypeAdapter.Factory
-
Constructor Summary
Constructors Constructor Description InitializeParamsTypeAdapter(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitializeParamsread(com.google.gson.stream.JsonReader in)protected ClientCapabilitiesreadCapabilities(com.google.gson.stream.JsonReader in)protected ClientInforeadClientInfo(com.google.gson.stream.JsonReader in)protected java.lang.ObjectreadInitializationOptions(com.google.gson.stream.JsonReader in)protected java.lang.StringreadLocale(com.google.gson.stream.JsonReader in)protected java.lang.IntegerreadProcessId(com.google.gson.stream.JsonReader in)protected java.lang.StringreadRootPath(com.google.gson.stream.JsonReader in)protected java.lang.StringreadRootUri(com.google.gson.stream.JsonReader in)protected java.lang.StringreadTrace(com.google.gson.stream.JsonReader in)protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer>readWorkDoneToken(com.google.gson.stream.JsonReader in)protected java.util.List<WorkspaceFolder>readWorkspaceFolders(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, InitializeParams value)protected voidwriteCapabilities(com.google.gson.stream.JsonWriter out, ClientCapabilities value)protected voidwriteClientInfo(com.google.gson.stream.JsonWriter out, ClientInfo value)protected voidwriteInitializationOptions(com.google.gson.stream.JsonWriter out, java.lang.Object value)protected voidwriteLocale(com.google.gson.stream.JsonWriter out, java.lang.String value)protected voidwriteProcessId(com.google.gson.stream.JsonWriter out, java.lang.Integer value)protected voidwriteRootPath(com.google.gson.stream.JsonWriter out, java.lang.String value)protected voidwriteRootUri(com.google.gson.stream.JsonWriter out, java.lang.String value)protected voidwriteTrace(com.google.gson.stream.JsonWriter out, java.lang.String value)protected voidwriteWorkDoneToken(com.google.gson.stream.JsonWriter out, org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> value)protected voidwriteWorkspaceFolders(com.google.gson.stream.JsonWriter out, java.util.List<WorkspaceFolder> value)
-
-
-
Method Detail
-
readInitializationOptions
protected java.lang.Object readInitializationOptions(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
writeProcessId
protected void writeProcessId(com.google.gson.stream.JsonWriter out, java.lang.Integer value) throws java.io.IOException- Throws:
java.io.IOException
-
writeRootUri
protected void writeRootUri(com.google.gson.stream.JsonWriter out, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
read
public InitializeParams read(com.google.gson.stream.JsonReader in) throws java.io.IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<InitializeParams>- Throws:
java.io.IOException
-
readWorkDoneToken
protected org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> readWorkDoneToken(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readProcessId
protected java.lang.Integer readProcessId(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readRootPath
protected java.lang.String readRootPath(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readRootUri
protected java.lang.String readRootUri(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readCapabilities
protected ClientCapabilities readCapabilities(com.google.gson.stream.JsonReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
readClientInfo
protected ClientInfo readClientInfo(com.google.gson.stream.JsonReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
readLocale
protected java.lang.String readLocale(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readTrace
protected java.lang.String readTrace(com.google.gson.stream.JsonReader in) throws java.io.IOException- Throws:
java.io.IOException
-
readWorkspaceFolders
protected java.util.List<WorkspaceFolder> readWorkspaceFolders(com.google.gson.stream.JsonReader in) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, InitializeParams value) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<InitializeParams>- Throws:
java.io.IOException
-
writeWorkDoneToken
protected void writeWorkDoneToken(com.google.gson.stream.JsonWriter out, org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> value) throws java.io.IOException- Throws:
java.io.IOException
-
writeRootPath
protected void writeRootPath(com.google.gson.stream.JsonWriter out, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
writeInitializationOptions
protected void writeInitializationOptions(com.google.gson.stream.JsonWriter out, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
writeCapabilities
protected void writeCapabilities(com.google.gson.stream.JsonWriter out, ClientCapabilities value) throws java.io.IOException- Throws:
java.io.IOException
-
writeClientInfo
protected void writeClientInfo(com.google.gson.stream.JsonWriter out, ClientInfo value) throws java.io.IOException- Throws:
java.io.IOException
-
writeLocale
protected void writeLocale(com.google.gson.stream.JsonWriter out, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
writeTrace
protected void writeTrace(com.google.gson.stream.JsonWriter out, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
writeWorkspaceFolders
protected void writeWorkspaceFolders(com.google.gson.stream.JsonWriter out, java.util.List<WorkspaceFolder> value) throws java.io.IOException- Throws:
java.io.IOException
-
-