class CommentSuppressor extends java.lang.Object implements MatchSuppressor
MatchSuppressor that suppresses based on
whether in a comment.| Modifier and Type | Field and Description |
|---|---|
private FileContents |
currentContents
File contents to check for comments.
|
| Constructor and Description |
|---|
CommentSuppressor(FileContents currentContents)
Constructor for this suppressor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldSuppress(int startLineNo,
int startColNo,
int endLineNo,
int endColNo)
Checks if the specified selection should be suppressed.
|
private final FileContents currentContents
CommentSuppressor(FileContents currentContents)
currentContents - content of checked file.public boolean shouldSuppress(int startLineNo, int startColNo, int endLineNo, int endColNo)
MatchSuppressorshouldSuppress in interface MatchSuppressorstartLineNo - the starting line numberstartColNo - the starting column numberendLineNo - the ending line numberendColNo - the ending column numberCopyright © 2001-2022. All Rights Reserved.