Class AbstractRuleViolationFactory

    • Constructor Detail

      • AbstractRuleViolationFactory

        public AbstractRuleViolationFactory()
    • Method Detail

      • addViolation

        public void addViolation​(RuleContext ruleContext,
                                 Rule rule,
                                 Node node,
                                 java.lang.String message,
                                 java.lang.Object[] args)
        Description copied from interface: RuleViolationFactory
        Adds a violation to the report.
        Specified by:
        addViolation in interface RuleViolationFactory
        ruleContext - the RuleContext
        rule - the rule
        node - the node that produces the violation
        message - specific message to put in the report
        args - arguments to embed in the rule violation message
      • createRuleViolation

        protected abstract RuleViolation createRuleViolation​(Rule rule,
                                                             RuleContext ruleContext,
                                                             Node node,
                                                             java.lang.String message,
                                                             int beginLine,
                                                             int endLine)