Class CommentSuppressor
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.regexp.CommentSuppressor
- All Implemented Interfaces:
 MatchSuppressor
Implementation of a 
MatchSuppressor that suppresses based on
 whether in a comment.- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionCommentSuppressor(FileContents currentContents) Constructor for this suppressor. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldSuppress(int startLineNo, int startColNo, int endLineNo, int endColNo) Checks if the specified selection should be suppressed. 
- 
Field Details
- 
currentContents
File contents to check for comments. 
 - 
 - 
Constructor Details
- 
CommentSuppressor
CommentSuppressor(FileContents currentContents) Constructor for this suppressor.- Parameters:
 currentContents- content of checked file.
 
 - 
 - 
Method Details
- 
shouldSuppress
Description copied from interface:MatchSuppressorChecks if the specified selection should be suppressed.- Specified by:
 shouldSuppressin 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.
 
 
 -