< prev index next >

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

Print this page

        

*** 53,63 **** * Contructor. * The object created by this constructor can be used * to access static methods and fields only. * * @param className name of class ! * @exception ClassNotFoundException */ public ClassReference(String className) throws ClassNotFoundException { super(); cl = Class.forName(className); --- 53,63 ---- * Contructor. * The object created by this constructor can be used * to access static methods and fields only. * * @param className name of class ! * @throws ClassNotFoundException todo document */ public ClassReference(String className) throws ClassNotFoundException { super(); cl = Class.forName(className);
*** 67,78 **** /** * 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 */ public void startApplication() throws InvocationTargetException, NoSuchMethodException { String[] params = new String[0]; startApplication(params); --- 67,78 ---- /** * Executes class's <code>main(java.lang.String[])</code> method * with a zero-length <code>java.lang.String</code> array * as a parameter. * ! * @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,92 **** /** * 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 */ public void startApplication(String[] params) throws InvocationTargetException, NoSuchMethodException { String[] real_params; if (params == null) { --- 81,92 ---- /** * 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>. ! * @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,120 **** * 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> * 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. --- 109,120 ---- * 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> * 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 >