public class JsonRpcMethod
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethodName() |
java.lang.reflect.Type[] |
getParameterTypes() |
java.lang.reflect.Type |
getReturnType() |
com.google.gson.TypeAdapterFactory |
getReturnTypeAdapterFactory() |
boolean |
isNotification() |
static JsonRpcMethod |
notification(java.lang.String name,
java.lang.reflect.Type... parameterTypes) |
static JsonRpcMethod |
request(java.lang.String name,
java.lang.reflect.Type returnType,
java.lang.reflect.Type... parameterTypes) |
static JsonRpcMethod |
request(java.lang.String name,
java.lang.reflect.Type returnType,
com.google.gson.TypeAdapterFactory returnTypeAdapterFactory,
java.lang.reflect.Type... parameterTypes) |
java.lang.String |
toString() |
public java.lang.String getMethodName()
public java.lang.reflect.Type[] getParameterTypes()
public java.lang.reflect.Type getReturnType()
public com.google.gson.TypeAdapterFactory getReturnTypeAdapterFactory()
public boolean isNotification()
public static JsonRpcMethod notification(java.lang.String name, java.lang.reflect.Type... parameterTypes)
public static JsonRpcMethod request(java.lang.String name, java.lang.reflect.Type returnType, java.lang.reflect.Type... parameterTypes)
public static JsonRpcMethod request(java.lang.String name, java.lang.reflect.Type returnType, com.google.gson.TypeAdapterFactory returnTypeAdapterFactory, java.lang.reflect.Type... parameterTypes)
public java.lang.String toString()
toString
in class java.lang.Object