Class ReflectionUtil

java.lang.Object
org.opencastproject.util.ReflectionUtil

public final class ReflectionUtil extends Object
Reflection utils.
  • Method Details

    • call

      public static <A> A call(Object expression)
      Simple helper to avoid unnecessary return null; statements when using run(Object), run(Class, Object). Just wrap your expression like this return call(expr).
    • run

      public static <A, B extends A> void run(Class<A> c, B o)
      Call all parameterless methods of c on object o.

      Does not call any bridge, synthetic or native methods and also no methods declared in Object.

    • run

      public static <A> void run(A a)
      Call all parameterless methods of object a.

      Does not call any bridge, synthetic or native methods and also no methods declared in Object.