public static class SuppressionCommentFilter.Tag extends java.lang.Object implements java.lang.Comparable<SuppressionCommentFilter.Tag>
| Constructor and Description |
|---|
Tag(int line,
int column,
java.lang.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(java.lang.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.
|
java.lang.String |
toString() |
public Tag(int line, int column, java.lang.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 contextjava.lang.IllegalArgumentException - 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 java.lang.Comparable<SuppressionCommentFilter.Tag>object - the tag to compare with this one.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isMatch(TreeWalkerAuditEvent event)
event - the TreeWalkerAuditEvent to check.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2018. All Rights Reserved.