|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.filters.SuppressionCommentFilter.Tag
A Tag holds a suppression comment and its location, and determines whether the supression turns checkstyle reporting on or off.
Constructor Summary | |
SuppressionCommentFilter.Tag(int aLine,
int aColumn,
java.lang.String aText,
boolean aOn)
Constructs a tag. |
Method Summary | |
int |
compareTo(java.lang.Object 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()
|
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SuppressionCommentFilter.Tag(int aLine, int aColumn, java.lang.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.Method Detail |
public java.lang.String getText()
public int getLine()
public int getColumn()
public boolean isOn()
true
if the suppression turns reporting on.public int compareTo(java.lang.Object aObject)
compareTo
in interface java.lang.Comparable
aObject
- the tag to compare with this one.
Comparable.compareTo(java.lang.Object)
public boolean isMatch(AuditEvent aEvent)
aEvent
- the AuditEvent
to check.
|
Back to the Checkstyle Home Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |