commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/reflect package.html MethodUtils.java
Date Sat, 16 Aug 2003 11:10:23 GMT
scolebourne    2003/08/16 04:10:23

  Modified:    lang/src/java/org/apache/commons/lang/reflect package.html
                        MethodUtils.java
  Log:
  Javadoc changes
  bug 22480, from Pete Gieser
  
  Revision  Changes    Path
  1.3       +2 -0      jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/package.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- package.html	31 May 2003 17:16:11 -0000	1.2
  +++ package.html	16 Aug 2003 11:10:23 -0000	1.3
  @@ -21,4 +21,6 @@
   The reflection implementation is slow and buggy. 
   If you are using one of these easier java versions, then you will probably find our code
   more reliable than the standard java implementation.</p>
  +@since 3.0
   </body>
  +</html>
  
  
  
  1.14      +17 -6     jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/MethodUtils.java
  
  Index: MethodUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/reflect/MethodUtils.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MethodUtils.java	20 Jul 2003 01:13:54 -0000	1.13
  +++ MethodUtils.java	16 Aug 2003 11:10:23 -0000	1.14
  @@ -71,15 +71,18 @@
    * @author Based on code from <code>BeanUtils</code> by: Craig R. McClanahan
    * @author Ralph Schaer
    * @author Chris Audley
  - * @author Rey François
  - * @author Gregor Raýman
  + * @author Rey Fran�ois
  + * @author Gregor Ra�man
    * @author Jan Sorensen
    * @author Robert Burrell Donkin
    * @author Gary Gregory
    * @version $Id$
    */
   public class MethodUtils {
  -    
  +
  +    /**
  +     * Debug flag.
  +     */
       public static final boolean debug = false;
       
       /**
  @@ -120,6 +123,7 @@
        *
        * @param cls  the class to reflect, must not be <code>null</code>
        * @param methodName  the field name to obtain
  +     * @param paramType  the class of the parameter
        * @return the Method object
        * @throws IllegalArgumentException if the class or method name
        *  is <code>null</code>
  @@ -131,11 +135,13 @@
       }
       
       /**
  -     * <p>Gets a <code>Method</code> by name.</p> The method must
be public.
  -     * Superclasses will be considered.</p>
  +     * <p>Gets a <code>Method</code> by name.</p>
  +     *
  +     * <p>The method must be public.  Superclasses will be considered.</p>
        *
        * @param cls  the class to reflect, must not be <code>null</code>
        * @param methodName  the field name to obtain
  +     * @param paramTypes  the classes of the parameters
        * @return the Method object
        * @throws IllegalArgumentException if the class or method name
        *  is <code>null</code>
  @@ -150,6 +156,7 @@
        *
        * @param cls  the class to reflect, must not be <code>null</code>
        * @param methodName  the method name to obtain
  +     * @param paramTypes  the classes of the parameters
        * @param breakScope  whether to break scope restrictions using the
        *  <code>setAccessible</code> method. <code>False</code> will
only
        *  match public fields.
  @@ -226,6 +233,7 @@
        * no such method can be found, return <code>null</code>.</p>
        *
        * @param method The method that we wish to call
  +     * @return Method
        */
       public static Method getMethod(Method method) {
           
  @@ -282,6 +290,7 @@
        * @param methodName  get method with this name, must not
        *  be <code>null</code>
        * @param arg  use this argument, must not be <code>null</code>
  +     * @return Object
        * @throws ReflectionException if an error occurs during reflection
        * @throws IllegalArgumentException if any parameter is
        *  <code>null</code>
  @@ -323,6 +332,7 @@
        *  be <code>null</code>
        * @param args  use these arguments - treat <code>null</code>
        *  as empty array
  +     * @return Object
        * @throws ReflectionException if an error occurs during reflection
        * @throws IllegalArgumentException if the objectToInvoke, methodName
        *  or any argument is <code>null</code>
  @@ -368,6 +378,7 @@
        * @param args  use these arguments - treat null as empty array
        * @param parameterTypes  match these parameters - treat
        *  <code>null</code> as empty array
  +     * @return Object
        * @throws ReflectionException if an error occurs during reflection
        */
       public static Object invokeMethod(
  
  
  

Mime
View raw message