public abstract class AbstractRuleViolationFactory extends Object implements RuleViolationFactory
| Constructor and Description |
|---|
AbstractRuleViolationFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
int beginLine,
int endLine,
Object[] args) |
void |
addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
Object[] args)
Adds a violation to the report.
|
protected abstract RuleViolation |
createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message) |
protected abstract RuleViolation |
createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message,
int beginLine,
int endLine) |
public void addViolation(RuleContext ruleContext, Rule rule, Node node, String message, Object[] args)
RuleViolationFactoryaddViolation in interface RuleViolationFactoryruleContext - the RuleContextrule - the rulenode - the node that produces the violationmessage - specific message to put in the reportargs - arguments to embed in the rule violation messagepublic void addViolation(RuleContext ruleContext, Rule rule, Node node, String message, int beginLine, int endLine, Object[] args)
addViolation in interface RuleViolationFactoryprotected abstract RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message)
protected abstract RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message, int beginLine, int endLine)
Copyright © 2002-2014 InfoEther. All Rights Reserved.