public class SuppressionCommentFilter.Tag extends Object implements Comparable<SuppressionCommentFilter.Tag>
Constructor and Description |
---|
SuppressionCommentFilter.Tag(int line,
int column,
String text,
boolean on)
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.
|
int |
getColumn()
Determines the column number of the tag in the source file.
|
int |
getLine() |
String |
getText() |
boolean |
isMatch(AuditEvent event)
Determines whether the source of an audit event
matches the text of this tag.
|
boolean |
isOn()
Determines whether the suppression turns checkstyle reporting on or
off.
|
String |
toString() |
public SuppressionCommentFilter.Tag(int line, int column, String text, boolean on) throws org.apache.commons.beanutils.ConversionException
line
- the line number.column
- the column number.text
- the text of the suppression.on
- true
if the tag turns checkstyle reporting.org.apache.commons.beanutils.ConversionException
- if unable to parse expanded text.
on.public int getLine()
public int getColumn()
public boolean isOn()
true
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.Comparable.compareTo(java.lang.Object)
public boolean isMatch(AuditEvent event)
event
- the AuditEvent
to check.Copyright © 2001–2015. All rights reserved.