public class SuppressionCommentFilter.Tag extends Object implements Comparable<SuppressionCommentFilter.Tag>
Constructor and Description |
---|
SuppressionCommentFilter.Tag(int aLine,
int aColumn,
String aText,
boolean aOn)
Constructs a tag.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SuppressionCommentFilter.Tag aObject)
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 aEvent)
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 aLine, int aColumn, String aText, boolean aOn) throws org.apache.commons.beanutils.ConversionException
aLine
- the line number.aColumn
- the column number.aText
- the text of the suppression.aOn
- true
if the tag turns checkstyle reporting.org.apache.commons.beanutils.ConversionException
- if unable to parse expanded aText.
on.public String getText()
public int getLine()
public int getColumn()
public boolean isOn()
true
if the suppression turns reporting on.public int compareTo(SuppressionCommentFilter.Tag aObject)
compareTo
in interface Comparable<SuppressionCommentFilter.Tag>
aObject
- the tag to compare with this one.Comparable.compareTo(java.lang.Object)
public boolean isMatch(AuditEvent aEvent)
aEvent
- the AuditEvent
to check.Copyright © 2001–2013. All rights reserved.