Class 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.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)