AbstractRuleViolationFactory
public interface RuleViolationFactory
Modifier and Type | Method | Description |
---|---|---|
void |
addViolation(RuleContext ruleContext,
Rule rule,
Node node,
java.lang.String message,
int beginLine,
int endLine,
java.lang.Object[] args) |
|
void |
addViolation(RuleContext ruleContext,
Rule rule,
Node node,
java.lang.String message,
java.lang.Object[] args) |
Adds a violation to the report.
|
void addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)
ruleContext
- the RuleContextrule
- the rulenode
- the node that produces the violationmessage
- specific message to put in the reportargs
- arguments to embed in the rule violation messagevoid addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)
Copyright © 2002–2018 PMD. All rights reserved.