Class ReflectionUtils
java.lang.Object
org.eclipse.nebula.widgets.opal.commons.ReflectionUtils
public class ReflectionUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ReflectionUtils()
-
Method Summary
Modifier and Type Method Description static java.lang.Object
callMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)
Call a method using introspection (so ones can call a private or protected method)
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
callMethod
public static java.lang.Object callMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)Call a method using introspection (so ones can call a private or protected method)- Parameters:
object
- object on which the method will be calledmethodName
- method nameargs
- arguments of this method (can be null)- Returns:
- the value returned by this method (if this method returns a value)
-