< prev index next >

core/JemmyAWTInput/src/org/jemmy/input/ClassReference.java

Print this page

        

@@ -53,11 +53,11 @@
      * Contructor.
      * The object created by this constructor can be used
      * to access static methods and fields only.
      *
      * @param className name of class
-     * @exception ClassNotFoundException
+     * @throws ClassNotFoundException todo document
      */
     public ClassReference(String className)
             throws ClassNotFoundException {
         super();
         cl = Class.forName(className);

@@ -67,12 +67,12 @@
     /**
      * Executes class's <code>main(java.lang.String[])</code> method
      * with a zero-length <code>java.lang.String</code> array
      * as a parameter.
      *
-     * @exception NoSuchMethodException
-     * @exception InvocationTargetException
+     * @throws NoSuchMethodException when the method cannot be found.
+     * @throws InvocationTargetException when the invoked method throws an exception.
      */
     public void startApplication()
             throws InvocationTargetException, NoSuchMethodException {
         String[] params = new String[0];
         startApplication(params);

@@ -81,12 +81,12 @@
     /**
      * Executes class's <code>main(java.lang.String[])</code> method.
      *
      * @param params The <code>java.lang.String</code> array to pass
      * to <code>main(java.lang.String[])</code>.
-     * @exception NoSuchMethodException
-     * @exception InvocationTargetException
+     * @throws NoSuchMethodException when the method cannot be found.
+     * @throws InvocationTargetException when the invoked method throws an exception.
      */
     public void startApplication(String[] params)
             throws InvocationTargetException, NoSuchMethodException {
         String[] real_params;
         if (params == null) {

@@ -109,12 +109,12 @@
      * Locates method by name and parameter types and executes it.
      *
      * @param method_name Name of method.
      * @param params Method parameters.
      * @param params_classes Method parameters types.
-     * @return the return value from an invocation of the Method.<BR>
-     * If <code>method_name</code> method is void, <code>null</code> is returned.<BR>
+     * @return the return value from an invocation of the Method.<br>
+     * If <code>method_name</code> method is void, <code>null</code> is returned.<br>
      * If <code>method_name</code> method returns a primitive type, then
      * return wrapper class instance.
      * @throws InvocationTargetException when the invoked method throws an exception.
      * @throws NoSuchMethodException when the method cannot be found.
      * @throws IllegalAccessException when access to the class or method is lacking.
< prev index next >