Package org.eclipse.lsp4j.jsonrpc.json
Class JsonRpcMethod
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.json.JsonRpcMethod
-
public class JsonRpcMethod extends java.lang.ObjectA description of a JSON-RPC method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodName()java.lang.reflect.Type[]getParameterTypes()java.lang.reflect.TypegetReturnType()com.google.gson.TypeAdapterFactorygetReturnTypeAdapterFactory()booleanisNotification()static JsonRpcMethodnotification(java.lang.String name, java.lang.reflect.Type... parameterTypes)static JsonRpcMethodrequest(java.lang.String name, java.lang.reflect.Type returnType, com.google.gson.TypeAdapterFactory returnTypeAdapterFactory, java.lang.reflect.Type... parameterTypes)static JsonRpcMethodrequest(java.lang.String name, java.lang.reflect.Type returnType, java.lang.reflect.Type... parameterTypes)java.lang.StringtoString()
-
-
-
Method Detail
-
getMethodName
public java.lang.String getMethodName()
-
getParameterTypes
public java.lang.reflect.Type[] getParameterTypes()
-
getReturnType
public java.lang.reflect.Type getReturnType()
-
getReturnTypeAdapterFactory
public com.google.gson.TypeAdapterFactory getReturnTypeAdapterFactory()
-
isNotification
public boolean isNotification()
-
notification
public static JsonRpcMethod notification(java.lang.String name, java.lang.reflect.Type... parameterTypes)
-
request
public static JsonRpcMethod request(java.lang.String name, java.lang.reflect.Type returnType, java.lang.reflect.Type... parameterTypes)
-
request
public static JsonRpcMethod request(java.lang.String name, java.lang.reflect.Type returnType, com.google.gson.TypeAdapterFactory returnTypeAdapterFactory, java.lang.reflect.Type... parameterTypes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-