Class NeverSuppress

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.regexp.NeverSuppress
All Implemented Interfaces:
MatchSuppressor

public final class NeverSuppress extends Object implements MatchSuppressor
An implementation of MatchSuppressor that never suppresses a match.
  • Field Details

  • Constructor Details

    • NeverSuppress

      private NeverSuppress()
      Stop creation of instances.
  • Method Details

    • shouldSuppress

      public boolean shouldSuppress(int startLineNo, int startColNo, int endLineNo, int endColNo)
      Description copied from interface: MatchSuppressor
      Checks if the specified selection should be suppressed.
      Specified by:
      shouldSuppress in interface MatchSuppressor
      Parameters:
      startLineNo - the starting line number
      startColNo - the starting column number
      endLineNo - the ending line number
      endColNo - the ending column number
      Returns:
      true if the positions intersects with a comment.