Class MethodSortMatcher<T extends MethodDescription>

    • Field Detail

      • sort

        private final MethodSortMatcher.Sort sort
        The sort of method description to be matched by this element matcher.
    • Constructor Detail

      • MethodSortMatcher

        public MethodSortMatcher​(MethodSortMatcher.Sort sort)
        Creates a new element matcher that matches a specific sort of method description.
        Parameters:
        sort - The sort of method description to be matched by this element matcher.
    • Method Detail

      • of

        public static <T extends MethodDescriptionElementMatcher.Junction<T> of​(MethodSortMatcher.Sort sort)
        Returns an element matcher that matches a specific sort of method description.
        Type Parameters:
        T - The type of the matched entity.
        Parameters:
        sort - The sort of method description to be matched by this element matcher.
        Returns:
        A matcher that matches methods of the provided sort.
      • matches

        public boolean matches​(T target)
        Matches a target against this element matcher.
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.
      • toString

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