Class ReflectionUtils

java.lang.Object
com.cedarsoftware.util.reflect.ReflectionUtils

public class ReflectionUtils extends Object
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • buildAccessorMap

      public static Map<String,Method> buildAccessorMap(Class<?> c)
      Builds a list of methods with zero parameter methods taking precedence over overrides for a given single level class.
      Parameters:
      c - - class to get the declared methods for
      Returns:
      Map of name of the method to the actual emthod
    • buildInjectorMap

      public static Map<String,Method> buildInjectorMap(Class<?> c)
      Builds a list of methods with zero parameter methods taking precedence over overrides for a given single level class.
      Parameters:
      c - - class to get the declared methods for
      Returns:
      Map of name of the method to the actual emthod
    • zeroParameterMethodPreference

      public static Method zeroParameterMethodPreference(Method method1, Method method2)
      Binary Operator that returns a method with zero parameters on conflict.
      Parameters:
      method1 - - 1st method to compare
      method2 - - 2nd method to compare
      Returns:
      in the case over overloads choose the method with 0 parameters.
    • oneParameterMethodPreference

      public static Method oneParameterMethodPreference(Method method1, Method method2)
      Binary Operator that returns a method with zero parameters on conflict.
      Parameters:
      method1 - - 1st method to compare
      method2 - - 2nd method to compare
      Returns:
      in the case over overloads choose the method with 0 parameters.