Class SuppressWithNearbyCommentFilter.Tag

    • Constructor Detail

      • Tag

        public Tag​(String text,
                   int line,
                   SuppressWithNearbyCommentFilter filter)
        Constructs a tag.
        Parameters:
        text - the text of the suppression.
        line - the line number.
        filter - the SuppressWithNearbyCommentFilter with the context
        Throws:
        IllegalArgumentException - if unable to parse expanded text.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isMatch

        public boolean isMatch​(TreeWalkerAuditEvent event)
        Determines whether the source of an audit event matches the text of this tag.
        Parameters:
        event - the TreeWalkerAuditEvent to check.
        Returns:
        true if the source of event matches the text of this tag.