Class SuppressWithNearbyCommentFilter.Tag
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.filters.SuppressWithNearbyCommentFilter.Tag
-
- Enclosing class:
- SuppressWithNearbyCommentFilter
public static class SuppressWithNearbyCommentFilter.Tag extends Object
A Tag holds a suppression comment and its location.
-
-
Constructor Summary
Constructors Constructor Description Tag(String text, int line, SuppressWithNearbyCommentFilter filter)Constructs a tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)inthashCode()booleanisMatch(TreeWalkerAuditEvent event)Determines whether the source of an audit event matches the text of this tag.StringtoString()
-
-
-
Constructor Detail
-
Tag
public Tag(String text, int line, SuppressWithNearbyCommentFilter filter)
Constructs a tag.- Parameters:
text- the text of the suppression.line- the line number.filter- theSuppressWithNearbyCommentFilterwith the context- Throws:
IllegalArgumentException- if unable to parse expanded text.
-
-
Method Detail
-
isMatch
public boolean isMatch(TreeWalkerAuditEvent event)
Determines whether the source of an audit event matches the text of this tag.- Parameters:
event- theTreeWalkerAuditEventto check.- Returns:
- true if the source of event matches the text of this tag.
-
-