All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----kh.util.MethodUtil
Summary |
public class MethodUtil extends java.lang.Object { // Constructors 1 public MethodUtil(); // Methods 2 public static Object invoke(Class, String, Object, Object[]) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException; public static Object invoke(String, String, Object, Object[]) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, NoSuchMethodException; }
This is a toolkit for dispatching calls to a series of named methods.
Constructors |
· MethodUtil | Summary | Top |
public MethodUtil()
Default constructor
Methods |
· invoke | Summary | Top |
public static Object invoke(Class theClass, String methodName, Object thisObj, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
Invokes an object by name - i.e. a wrapper for the method lookup process
Parameter Description thisObj The instance which the method is applied to (null for static methods)
· invoke | Summary | Top |
public static Object invoke(String theClass, String methodName, Object thisObj, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, NoSuchMethodException
Invokes an object by name - i.e. a wrapper for the method lookup process
Parameter Description thisObj The instance which the method is applied to (null for static methods)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7