public static class SuppressionCommentFilter.Tag extends Object implements Comparable<SuppressionCommentFilter.Tag>
| Constructor and Description |
|---|
Tag(int line,
int column,
String text,
SuppressionCommentFilter.TagType tagType,
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()
Returns line number of the tag in the source file.
|
SuppressionCommentFilter.TagType |
getTagType()
Determines whether the suppression turns checkstyle reporting on or
off.
|
int |
hashCode() |
boolean |
isMatch(TreeWalkerAuditEvent event)
Determines whether the source of an audit event
matches the text of this tag.
|
String |
toString() |
public Tag(int line, int column, String text, SuppressionCommentFilter.TagType tagType, SuppressionCommentFilter filter)
line - the line number.column - the column number.text - the text of the suppression.tagType - ON if the tag turns checkstyle reporting.filter - the SuppressionCommentFilter with the contextIllegalArgumentException - if unable to parse expanded text.public int getLine()
public int getColumn()
public SuppressionCommentFilter.TagType getTagType()
ON if 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(TreeWalkerAuditEvent event)
event - the TreeWalkerAuditEvent to check.Copyright © 2001-2017. All Rights Reserved.