Code example for Method

Methods: getDeclaringClass, getName, getParameterTypes

0
        } 
        return EMPTY_ANNOTATIONS;
    } 
 
    private static Method methodFromSuperclass(final Method method) {
        final Class<?> superclass = method.getDeclaringClass().getSuperclass();
        if (superclass != null) {
            return ClassUtils.getMethodIfAvailable(superclass, method.getName(), method.getParameterTypes());
        } 
        return null; 
    } 
 
    private static boolean isEmpty(Annotation[][] parameterAnnotations) {
        for (Annotation[] parameterAnnotation : parameterAnnotations) {
            if (parameterAnnotation.length != 0) {
                return false; 
            } 
        } 
        return true; 
    }