public abstract class AbstractRuleViolationFactory extends java.lang.Object implements RuleViolationFactory
Constructor and Description |
---|
AbstractRuleViolationFactory() |
Modifier and Type | Method and 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.
|
protected abstract RuleViolation |
createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
java.lang.String message) |
protected abstract RuleViolation |
createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
java.lang.String message,
int beginLine,
int endLine) |
public void addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, java.lang.Object[] args)
RuleViolationFactory
addViolation
in interface RuleViolationFactory
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 messagepublic void addViolation(RuleContext ruleContext, Rule rule, Node node, java.lang.String message, int beginLine, int endLine, java.lang.Object[] args)
addViolation
in interface RuleViolationFactory
protected abstract RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message)
protected abstract RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, java.lang.String message, int beginLine, int endLine)
Copyright © 2002-2014 InfoEther. All Rights Reserved.