class MultilineCommentChecker extends java.lang.Object
A class that is used to hold the state of a the presence of multiline comments. When processing files for violations, not all violations apply to comments. This class provides a simple way to process each line of code and determine if the current line exists inside of a multiline comment.
Modifiers | Name | Description |
---|---|---|
protected boolean |
inMultilineComment |
Constructor and description |
---|
MultilineCommentChecker
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
processLine(java.lang.String line) Processes a line of code sets the inMultilineComment state based on the status of the current line. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |