Package com.inductiveautomation.rm.base
Class RMMethodUtils
java.lang.Object
com.inductiveautomation.rm.base.RMMethodUtils
Utility methods for method reflection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Method
Returns the method for the given object, method name and paramter types class array.static Object
Calls the given method name on the given object with the given arg array and class array.static Object
Calls the given method name on the given object.static Object
Calls the given method name on the given object with the given arg array and class array.static Object
Calls the given method name on the given object with the given parameter of the given class.static void
Invokes a given method on every member of a List.
-
Constructor Details
-
RMMethodUtils
public RMMethodUtils()
-
-
Method Details
-
getMethod
Returns the method for the given object, method name and paramter types class array. -
invoke
Calls the given method name on the given object. -
invoke
Calls the given method name on the given object with the given parameter of the given class. -
invoke
public static Object invoke(Object anObj, String aMethod, Object[] parameters, Class[] parameterTypes) Calls the given method name on the given object with the given arg array and class array. -
invoke
Calls the given method name on the given object with the given arg array and class array. -
invokeAll
Invokes a given method on every member of a List. Any method not implemented by the object is simply ignored - invoke() returns null if the class doesn't have the method. The method's return values are also ignored (this isn't aggregation, just invocation).
-