Class ReflectionUtils


  • public final class ReflectionUtils
    extends java.lang.Object
    Provide utilities to assist reflective access. This class is forked from the netty project and modified to suit our needs.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Method retrieveMethod​(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>... parameterTypes)
      Retrieves the specific Method from the Class without checked exception.
      • Methods inherited from class java.lang.Object

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

      • retrieveMethod

        public static java.lang.reflect.Method retrieveMethod​(java.lang.Class<?> clazz,
                                                              java.lang.String name,
                                                              java.lang.Class<?>... parameterTypes)
        Retrieves the specific Method from the Class without checked exception.

        Throws IllegalArgumentException if NoSuchMethodException is thrown.

        Parameters:
        clazz - Class to retrieve a Method from
        name - the name of the method
        parameterTypes - the list of method parameters
        Returns:
        the Method object