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)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 called
      methodName - method name
      args - arguments of this method (can be null)
      Returns:
      the value returned by this method (if this method returns a value)