Class ModifierMatcher<T extends ModifierReviewable>

    • 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

      • matches

        public boolean matches​(T target)
        Description copied from interface: ElementMatcher
        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