Class ModifierMatcher<T extends ModifierReviewable>

    • Field Detail

      • mode

        private final ModifierMatcher.Mode mode
        The matching mode to apply by this modifier matcher.
    • Constructor Detail

      • ModifierMatcher

        public ModifierMatcher​(ModifierMatcher.Mode mode)
        Creates a new element matcher that matches an element by its modifier.
        Parameters:
        mode - The match mode to apply to the matched element's modifier.
    • Method Detail

      • of

        public static <T extends ModifierReviewableElementMatcher.Junction<T> of​(ModifierMatcher.Mode mode)
        Returns a new element matcher that matches an element by its modifier.
        Type Parameters:
        T - The type of the matched entity.
        Parameters:
        mode - The match mode to apply to the matched element's modifier.
        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