类 AnnotationMethodResolver

    • 构造器概要

      构造器 
      构造器说明
      AnnotationMethodResolver​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      Create a MethodResolver for the specified Method-level annotation type.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      java.lang.reflect.MethodfindMethod​(java.lang.Class<?> clazz)
      Find a single Method on the given Class that contains the annotation type for which this resolver is searching.
      java.lang.reflect.MethodfindMethod​(java.lang.Object candidate)
      Find a single Method on the Class of the given candidate object that contains the annotation type for which this resolver is searching.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AnnotationMethodResolver

        public AnnotationMethodResolver​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Create a MethodResolver for the specified Method-level annotation type.
        参数:
        annotationType - establish the annotation to be used.
    • 方法详细资料

      • findMethod

        public java.lang.reflect.Method findMethod​(java.lang.Object candidate)
        Find a single Method on the Class of the given candidate object that contains the annotation type for which this resolver is searching.
        指定者:
        findMethod 在接口中 MethodResolver
        参数:
        candidate - the instance whose Class will be checked for the annotation
        返回:
        a single matching Method instance or null if the candidate's Class contains no Methods with the specified annotation
        抛出:
        java.lang.IllegalArgumentException - if more than one Method has the specified annotation
      • findMethod

        public java.lang.reflect.Method findMethod​(java.lang.Class<?> clazz)
        Find a single Method on the given Class that contains the annotation type for which this resolver is searching.
        指定者:
        findMethod 在接口中 MethodResolver
        参数:
        clazz - the Class instance to check for the annotation
        返回:
        a single matching Method instance or null if the Class contains no Methods with the specified annotation
        抛出:
        java.lang.IllegalArgumentException - if more than one Method has the specified annotation