Class SuppressWithPlainTextCommentFilter.Suppression

java.lang.Object
com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.Suppression
Enclosing class:
SuppressWithPlainTextCommentFilter

private static final class SuppressWithPlainTextCommentFilter.Suppression extends Object
The class which represents the suppression.
  • Field Details

    • eventSourceRegexp

      private final Pattern eventSourceRegexp
      The regexp which is used to match the event source.
    • eventMessageRegexp

      private final Pattern eventMessageRegexp
      The regexp which is used to match the event message.
    • eventIdRegexp

      private final Pattern eventIdRegexp
      The regexp which is used to match the event ID.
    • text

      private final String text
      Suppression text.
    • lineNo

      private final int lineNo
      Suppression line.
    • columnNo

      private final int columnNo
      Suppression column number.
    • suppressionType

      Suppression type.
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object other)
      Indicates whether some other object is "equal to" this one. Suppression on enumeration is needed so code stays consistent.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isMatch

      private boolean isMatch(AuditEvent event)
      Checks whether the suppression matches the given AuditEvent.
      Parameters:
      event - AuditEvent instance.
      Returns:
      true if the suppression matches AuditEvent.
    • isInScopeOfSuppression

      private boolean isInScopeOfSuppression(AuditEvent event)
      Checks whether AuditEvent is in the scope of the suppression.
      Parameters:
      event - AuditEvent instance.
      Returns:
      true if AuditEvent is in the scope of the suppression.
    • isCheckMatch

      private boolean isCheckMatch(AuditEvent event)
      Checks whether AuditEvent source name matches the check format.
      Parameters:
      event - AuditEvent instance.
      Returns:
      true if the AuditEvent source name matches the check format.
    • isIdMatch

      private boolean isIdMatch(AuditEvent event)
      Checks whether the AuditEvent module ID matches the ID format.
      Parameters:
      event - AuditEvent instance.
      Returns:
      true if the AuditEvent module ID matches the ID format.
    • isMessageMatch

      private boolean isMessageMatch(AuditEvent event)
      Checks whether the AuditEvent message matches the message format.
      Parameters:
      event - AuditEvent instance.
      Returns:
      true if the AuditEvent message matches the message format.