Class MethodSource

    • Method Detail

      • from

        public static MethodSource from​(String className,
                                        String methodName)
        Create a new MethodSource using the supplied class and method name.
        Parameters:
        className - the Class name; must not be null or blank
        methodName - the Method name; must not be null or blank
      • from

        public static MethodSource from​(String className,
                                        String methodName,
                                        String methodParameterTypes)
        Create a new MethodSource using the supplied class and method name.
        Parameters:
        className - the Class name; must not be null or blank
        methodName - the Method name; must not be null or blank
        methodParameterTypes - the Method parameter types as string
      • from

        public static MethodSource from​(Method method)
        Create a new MethodSource using the supplied method.
        Parameters:
        method - the Java method; must not be null
      • getClassName

        public String getClassName()
        Get the declaring Class name of this source.
      • getMethodName

        public final String getMethodName()
        Get the Method name of this source.
      • getMethodParameterTypes

        public final String getMethodParameterTypes()
        Get the Method parameter types of this source.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object