Class MultiFileRegexpHeaderCheck.MatchResult
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.header.MultiFileRegexpHeaderCheck.MatchResult
- Enclosing class:
 - MultiFileRegexpHeaderCheck
 
Represents the result of a header match check, containing information about any mismatch.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMatchResult(boolean isMatching, int lineNumber, String messageKey, String messageArg) Private constructor. - 
Method Summary
Modifier and TypeMethodDescriptionmatching()Creates a matching result.Creates a mismatch result. 
- 
Field Details
- 
isMatching
Whether the header matched the file. - 
lineNumber
Line number where the mismatch occurred (1-based). - 
messageKey
The message key for the violation. - 
messageArg
The argument for the message. 
 - 
 - 
Constructor Details
- 
MatchResult
Private constructor.- Parameters:
 isMatching- whether the header matchedlineNumber- line number of mismatch (1-based)messageKey- message key for violationmessageArg- message argument
 
 - 
 - 
Method Details
- 
matching
Creates a matching result.- Returns:
 - a matching result
 
 - 
mismatch
public static MultiFileRegexpHeaderCheck.MatchResult mismatch(int lineNumber, String messageKey, String messageArg) Creates a mismatch result.- Parameters:
 lineNumber- the line number where mismatch occurred (1-based)messageKey- the message key for the violationmessageArg- the argument for the message- Returns:
 - a mismatch result
 
 
 -