public static class SuppressionCommentFilter.Tag extends Object implements Comparable<SuppressionCommentFilter.Tag>
| Constructor and Description |
|---|
Tag(int line,
int column,
String text,
boolean reportingOn,
SuppressionCommentFilter filter)
Constructs a tag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SuppressionCommentFilter.Tag object)
Compares the position of this tag in the file
with the position of another tag.
|
boolean |
equals(Object other) |
int |
getColumn()
Determines the column number of the tag in the source file.
|
int |
getLine() |
int |
hashCode() |
boolean |
isMatch(AuditEvent event)
Determines whether the source of an audit event
matches the text of this tag.
|
boolean |
isReportingOn()
Determines whether the suppression turns checkstyle reporting on or
off.
|
String |
toString() |
public Tag(int line, int column, String text, boolean reportingOn, SuppressionCommentFilter filter)
line - the line number.column - the column number.text - the text of the suppression.reportingOn - true if the tag turns checkstyle reporting.filter - the SuppressionCommentFilter with the contextorg.apache.commons.beanutils.ConversionException - if unable to parse expanded text.public int getLine()
public int getColumn()
public boolean isReportingOn()
trueif the suppression turns reporting on.public int compareTo(SuppressionCommentFilter.Tag object)
compareTo in interface Comparable<SuppressionCommentFilter.Tag>object - the tag to compare with this one.public boolean isMatch(AuditEvent event)
event - the AuditEvent to check.Copyright © 2001-2016. All Rights Reserved.