Class NeverSuppress
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.regexp.NeverSuppress
- All Implemented Interfaces:
MatchSuppressor
An implementation of
MatchSuppressor
that never suppresses a
match.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldSuppress
(int startLineNo, int startColNo, int endLineNo, int endColNo) Checks if the specified selection should be suppressed.
-
Field Details
-
INSTANCE
The shared instance.
-
-
Constructor Details
-
NeverSuppress
private NeverSuppress()Stop creation of instances.
-
-
Method Details
-
shouldSuppress
Description copied from interface:MatchSuppressor
Checks if the specified selection should be suppressed.- Specified by:
shouldSuppress
in interfaceMatchSuppressor
- Parameters:
startLineNo
- the starting line numberstartColNo
- the starting column numberendLineNo
- the ending line numberendColNo
- the ending column number- Returns:
- true if the positions intersects with a comment.
-