public final class AnnotationUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo |
createMethodInfo(java.lang.reflect.Method method,
boolean useSegment,
java.lang.String segment,
java.lang.String value) |
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo |
createMethodInfo(java.lang.reflect.Method method,
java.lang.String segment) |
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo |
createNotificationInfo(java.lang.reflect.Method method,
java.lang.String segment,
JsonNotification jsonNotification) |
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo |
createRequestInfo(java.lang.reflect.Method method,
java.lang.String segment,
JsonRequest jsonRequest) |
static void |
findDelegateSegments(java.lang.Class<?> clazz,
java.util.Set<java.lang.Class<?>> visited,
java.util.function.Consumer<java.lang.reflect.Method> acceptor) |
static void |
findRpcMethods(java.lang.Class<?> clazz,
java.util.Set<java.lang.Class<?>> visited,
java.util.function.Consumer<org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo> acceptor)
Depth first search for annotated methods in hierarchy.
|
protected static java.lang.String |
getMethodName(java.lang.reflect.Method method,
boolean useSegment,
java.lang.String segment,
java.lang.String value) |
protected static java.lang.reflect.Type[] |
getParameterTypes(java.lang.reflect.Method method) |
protected static java.lang.String |
getSegment(java.lang.Class<?> clazz) |
static boolean |
isDelegateMethod(java.lang.reflect.Method method) |
public static void findDelegateSegments(java.lang.Class<?> clazz, java.util.Set<java.lang.Class<?>> visited, java.util.function.Consumer<java.lang.reflect.Method> acceptor)
public static boolean isDelegateMethod(java.lang.reflect.Method method)
public static void findRpcMethods(java.lang.Class<?> clazz, java.util.Set<java.lang.Class<?>> visited, java.util.function.Consumer<org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo> acceptor)
protected static java.lang.String getSegment(java.lang.Class<?> clazz)
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createMethodInfo(java.lang.reflect.Method method, java.lang.String segment)
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createNotificationInfo(java.lang.reflect.Method method, java.lang.String segment, JsonNotification jsonNotification)
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createRequestInfo(java.lang.reflect.Method method, java.lang.String segment, JsonRequest jsonRequest)
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createMethodInfo(java.lang.reflect.Method method, boolean useSegment, java.lang.String segment, java.lang.String value)
protected static java.lang.String getMethodName(java.lang.reflect.Method method, boolean useSegment, java.lang.String segment, java.lang.String value)
protected static java.lang.reflect.Type[] getParameterTypes(java.lang.reflect.Method method)