接口 MethodResolver

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      java.lang.reflect.MethodfindMethod​(java.lang.Class<?> clazz)
      Find a single Method on the given Class that matches this resolver's criteria.
      java.lang.reflect.MethodfindMethod​(java.lang.Object candidate)
      Find a single Method on the provided Object that matches this resolver's criteria.
    • 方法详细资料

      • findMethod

        @Nullable
        java.lang.reflect.Method findMethod​(java.lang.Object candidate)
                                     throws java.lang.IllegalArgumentException
        Find a single Method on the provided Object that matches this resolver's criteria.
        参数:
        candidate - the candidate Object whose Class should be searched for a Method
        返回:
        a single Method or null if no Method matching this resolver's criteria can be found.
        抛出:
        java.lang.IllegalArgumentException - if more than one Method defined on the given candidate's Class matches this resolver's criteria
      • findMethod

        @Nullable
        java.lang.reflect.Method findMethod​(java.lang.Class<?> clazz)
        Find a single Method on the given Class that matches this resolver's criteria.
        参数:
        clazz - the Class instance on which to search for a Method
        返回:
        a single Method or null if no Method matching this resolver's criteria can be found.
        抛出:
        java.lang.IllegalArgumentException - if more than one Method defined on the given Class matches this resolver's criteria