/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }
/** * Create new method list for a class. * * The method list contains {@link Class#getMethods() all methods} available * on the class or {@link Class#getDeclaredMethods() declared methods} only, * depending on the value of the {@code declaredMethods} parameter. * * The {@link Method#isBridge() bridge methods} and methods declared directly * on the {@link Object} class are filtered out. * * @param c class from which the method list is created. * @param declaredMethods if {@code true} only the {@link Class#getDeclaredMethods() * declared methods} will be included in the method list; otherwise * {@link Class#getMethods() all methods} will be listed. */ public MethodList(Class<?> c, boolean declaredMethods) { this(declaredMethods ? getAllDeclaredMethods(c) : getMethods(c)); }