Class MultiFileRegexpHeaderCheck.MatchResult

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.header.MultiFileRegexpHeaderCheck.MatchResult
Enclosing class:
MultiFileRegexpHeaderCheck

private static final class MultiFileRegexpHeaderCheck.MatchResult extends Object
Represents the result of a header match check, containing information about any mismatch.
  • Field Details

    • isMatching

      private final boolean isMatching
      Whether the header matched the file.
    • lineNumber

      private final int lineNumber
      Line number where the mismatch occurred (1-based).
    • messageKey

      private final String messageKey
      The message key for the violation.
    • messageArg

      private final String messageArg
      The argument for the message.
  • Constructor Details

    • MatchResult

      private MatchResult(boolean isMatching, int lineNumber, String messageKey, String messageArg)
      Private constructor.
      Parameters:
      isMatching - whether the header matched
      lineNumber - line number of mismatch (1-based)
      messageKey - message key for violation
      messageArg - message argument
  • Method Details