Class AnnotationUtil
- java.lang.Object
-
- org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil
-
public final class AnnotationUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfocreateMethodInfo(java.lang.reflect.Method method, boolean useSegment, java.lang.String segment, java.lang.String value)protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfocreateMethodInfo(java.lang.reflect.Method method, java.lang.String segment)protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfocreateNotificationInfo(java.lang.reflect.Method method, java.lang.String segment, JsonNotification jsonNotification)protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfocreateRequestInfo(java.lang.reflect.Method method, java.lang.String segment, JsonRequest jsonRequest)static voidfindDelegateSegments(java.lang.Class<?> clazz, java.util.Set<java.lang.Class<?>> visited, java.util.function.Consumer<java.lang.reflect.Method> acceptor)static voidfindRpcMethods(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.StringgetMethodName(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.StringgetSegment(java.lang.Class<?> clazz)static booleanisDelegateMethod(java.lang.reflect.Method method)
-
-
-
Method Detail
-
findDelegateSegments
public static void findDelegateSegments(java.lang.Class<?> clazz, java.util.Set<java.lang.Class<?>> visited, java.util.function.Consumer<java.lang.reflect.Method> acceptor)
-
isDelegateMethod
public static boolean isDelegateMethod(java.lang.reflect.Method method)
-
findRpcMethods
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)Depth first search for annotated methods in hierarchy.
-
getSegment
protected static java.lang.String getSegment(java.lang.Class<?> clazz)
-
createMethodInfo
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createMethodInfo(java.lang.reflect.Method method, java.lang.String segment)
-
createNotificationInfo
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createNotificationInfo(java.lang.reflect.Method method, java.lang.String segment, JsonNotification jsonNotification)
-
createRequestInfo
protected static org.eclipse.lsp4j.jsonrpc.services.AnnotationUtil.MethodInfo createRequestInfo(java.lang.reflect.Method method, java.lang.String segment, JsonRequest jsonRequest)
-
createMethodInfo
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)
-
getMethodName
protected static java.lang.String getMethodName(java.lang.reflect.Method method, boolean useSegment, java.lang.String segment, java.lang.String value)
-
getParameterTypes
protected static java.lang.reflect.Type[] getParameterTypes(java.lang.reflect.Method method)
-
-