Package org.opencastproject.util
Class ReflectionUtil
java.lang.Object
org.opencastproject.util.ReflectionUtil
Reflection utils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> ASimple helper to avoid unnecessaryreturn null;statements when usingrun(Object),run(Class, Object).static <A> voidrun(A a) Call all parameterless methods of objecta.static <A,B extends A>
voidCall all parameterless methods ofcon objecto.
-
Method Details
-
call
Simple helper to avoid unnecessaryreturn null;statements when usingrun(Object),run(Class, Object). Just wrap your expression like thisreturn call(expr). -
run
Call all parameterless methods ofcon objecto.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 objecta.Does not call any bridge, synthetic or native methods and also no methods declared in Object.
-