Class ReflectionUtils


  • public class ReflectionUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasClass​(java.lang.String aClass)  
      static boolean hasClasses​(java.lang.String... classes)  
      static java.util.Optional<java.lang.Object> tryExecuteMethod​(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)  
      static java.util.Optional<java.lang.Object> tryExecuteStaticMethodForClassName​(java.lang.String className, java.lang.String methodName, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

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

      • ReflectionUtils

        public ReflectionUtils()
    • Method Detail

      • tryExecuteStaticMethodForClassName

        public static java.util.Optional<java.lang.Object> tryExecuteStaticMethodForClassName​(java.lang.String className,
                                                                                              java.lang.String methodName,
                                                                                              java.lang.Object... args)
      • tryExecuteMethod

        public static java.util.Optional<java.lang.Object> tryExecuteMethod​(java.lang.Object object,
                                                                            java.lang.String methodName,
                                                                            java.lang.Object... args)
      • hasClass

        public static boolean hasClass​(java.lang.String aClass)
      • hasClasses

        public static boolean hasClasses​(java.lang.String... classes)