Class SuppressWithNearbyCommentFilter.Tag

    • Field Detail

      • text

        private final java.lang.String text
        The text of the tag.
      • firstLine

        private final int firstLine
        The first line where warnings may be suppressed.
      • lastLine

        private final int lastLine
        The last line where warnings may be suppressed.
      • tagCheckRegexp

        private final java.util.regex.Pattern tagCheckRegexp
        The parsed check regexp, expanded for the text of this tag.
      • tagMessageRegexp

        private final java.util.regex.Pattern tagMessageRegexp
        The parsed message regexp, expanded for the text of this tag.
      • tagIdRegexp

        private final java.util.regex.Pattern tagIdRegexp
        The parsed check ID regexp, expanded for the text of this tag.
    • Constructor Detail

      • Tag

        private Tag​(java.lang.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:
        java.lang.IllegalArgumentException - if unable to parse expanded text.