Class NestedMethodSelector

    • Constructor Summary

      Constructors 
      Constructor Description
      NestedMethodSelector​(java.lang.ClassLoader classLoader, java.util.List<java.lang.String> enclosingClassNames, java.lang.String nestedClassName, java.lang.String methodName, java.lang.Class<?>... parameterTypes)  
      NestedMethodSelector​(java.lang.ClassLoader classLoader, java.util.List<java.lang.String> enclosingClassNames, java.lang.String nestedClassName, java.lang.String methodName, java.lang.String parameterTypeNames)  
      NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> nestedClass, java.lang.reflect.Method method)  
      NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> nestedClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)  
      NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses, java.lang.Class<?> nestedClass, java.lang.String methodName, java.lang.String parameterTypeNames)  
    • Constructor Detail

      • NestedMethodSelector

        NestedMethodSelector​(java.lang.ClassLoader classLoader,
                             java.util.List<java.lang.String> enclosingClassNames,
                             java.lang.String nestedClassName,
                             java.lang.String methodName,
                             java.lang.String parameterTypeNames)
      • NestedMethodSelector

        NestedMethodSelector​(java.lang.ClassLoader classLoader,
                             java.util.List<java.lang.String> enclosingClassNames,
                             java.lang.String nestedClassName,
                             java.lang.String methodName,
                             java.lang.Class<?>... parameterTypes)
        Since:
        1.10
      • NestedMethodSelector

        NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses,
                             java.lang.Class<?> nestedClass,
                             java.lang.String methodName,
                             java.lang.String parameterTypeNames)
      • NestedMethodSelector

        NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses,
                             java.lang.Class<?> nestedClass,
                             java.lang.String methodName,
                             java.lang.Class<?>... parameterTypes)
        Since:
        1.10
      • NestedMethodSelector

        NestedMethodSelector​(java.util.List<java.lang.Class<?>> enclosingClasses,
                             java.lang.Class<?> nestedClass,
                             java.lang.reflect.Method method)
    • Method Detail

      • getClassLoader

        @API(status=EXPERIMENTAL,
             since="1.10")
        public java.lang.ClassLoader getClassLoader()
        Get the ClassLoader used to load the nested class.
        Since:
        1.10
      • getEnclosingClassNames

        public java.util.List<java.lang.String> getEnclosingClassNames()
        Get the names of the classes enclosing the nested class containing the selected method.
      • getEnclosingClasses

        public java.util.List<java.lang.Class<?>> getEnclosingClasses()
        Get the list of Class enclosing the nested Class containing the selected Method.

        If the Class were not provided, but only the name of the nested class and its enclosing classes, this method attempts to lazily load the list of enclosing Class and throws a PreconditionViolationException if the classes cannot be loaded.

      • getNestedClassName

        public java.lang.String getNestedClassName()
        Get the name of the nested class containing the selected method.
      • getNestedClass

        public java.lang.Class<?> getNestedClass()
        Get the nested Class containing the selected Method.

        If the Class were not provided, but only the name of the nested class and its enclosing classes, this method attempts to lazily load the nested Class and throws a PreconditionViolationException if the class cannot be loaded.

      • getMethodName

        public java.lang.String getMethodName()
        Get the name of the selected method.
      • getMethod

        public java.lang.reflect.Method getMethod()
        Get the selected Method.

        If the Method was not provided, but only the name, this method attempts to lazily load the Method based on its name and throws a PreconditionViolationException if the method cannot be loaded.

      • getParameterTypeNames

        @API(status=STABLE,
             since="1.10")
        public java.lang.String getParameterTypeNames()
        Get the names of parameter types for the selected method as a String.

        See MethodSelector.getParameterTypeNames() for details.

        Returns:
        the names of parameter types supplied to this NestedMethodSelector via a constructor or deduced from a Method or parameter types supplied via a constructor; never null but potentially an empty string
        Since:
        1.10
        See Also:
        MethodSelector.getParameterTypeNames()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object