Package org.jacoco.report.check
Class RulesChecker
- java.lang.Object
-
- org.jacoco.report.check.RulesChecker
-
public class RulesChecker extends java.lang.Object
Formatter which checks a set of given rules and reports violations to aIViolationsOutput
instance.
-
-
Field Summary
Fields Modifier and Type Field Description private ILanguageNames
languageNames
private java.util.List<Rule>
rules
-
Constructor Summary
Constructors Constructor Description RulesChecker()
New formatter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IReportVisitor
createVisitor(IViolationsOutput output)
Creates a new visitor to process the configured checks.void
setLanguageNames(ILanguageNames languageNames)
Sets the implementation for language name display for message formatting.void
setRules(java.util.List<Rule> rules)
Sets the rules to check by this formatter.
-
-
-
Field Detail
-
rules
private java.util.List<Rule> rules
-
languageNames
private ILanguageNames languageNames
-
-
Method Detail
-
setRules
public void setRules(java.util.List<Rule> rules)
Sets the rules to check by this formatter.- Parameters:
rules
- rules to check
-
setLanguageNames
public void setLanguageNames(ILanguageNames languageNames)
Sets the implementation for language name display for message formatting. Java language names are defined by default.- Parameters:
languageNames
- converter for language specific names
-
createVisitor
public IReportVisitor createVisitor(IViolationsOutput output)
Creates a new visitor to process the configured checks.- Parameters:
output
- call-back to report violations to- Returns:
- visitor to emit the report data to
-
-