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 ofMatchSuppressor
that never suppresses a match.
-
-
Field Summary
Fields Modifier and Type Field Description static MatchSuppressor
INSTANCE
The shared instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NeverSuppress()
Stop creation of instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldSuppress(int startLineNo, int startColNo, int endLineNo, int endColNo)
Checks if the specified selection should be suppressed.
-
-
-
Field Detail
-
INSTANCE
public static final MatchSuppressor INSTANCE
The shared instance.
-
-
Constructor Detail
-
NeverSuppress
private NeverSuppress()
Stop creation of instances.
-
-
Method Detail
-
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 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.
-
-