|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter.Tag
public class SuppressWithNearbyCommentFilter.Tag
A Tag holds a suppression comment and its location.
Constructor Summary | |
---|---|
SuppressWithNearbyCommentFilter.Tag(String aText,
int aLine)
Constructs a tag. |
Method Summary | |
---|---|
int |
compareTo(SuppressWithNearbyCommentFilter.Tag aOther)
Compares the position of this tag in the file with the position of another tag. |
int |
getFirstLine()
|
int |
getLastLine()
|
String |
getText()
|
boolean |
isMatch(AuditEvent aEvent)
Determines whether the source of an audit event matches the text of this tag. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SuppressWithNearbyCommentFilter.Tag(String aText, int aLine) throws org.apache.commons.beanutils.ConversionException
aText
- the text of the suppression.aLine
- the line number.
org.apache.commons.beanutils.ConversionException
- if unable to parse expanded aText.
on.Method Detail |
---|
public String getText()
public int getFirstLine()
public int getLastLine()
public int compareTo(SuppressWithNearbyCommentFilter.Tag aOther)
compareTo
in interface Comparable<SuppressWithNearbyCommentFilter.Tag>
aOther
- the tag to compare with this one.
Comparable.compareTo(java.lang.Object)
public boolean isMatch(AuditEvent aEvent)
aEvent
- the AuditEvent
to check.
public final String toString()
toString
in class Object
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |