net.sourceforge.pmd.lang.rule
Class AbstractRuleViolationFactory
java.lang.Object
net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory
- All Implemented Interfaces:
- RuleViolationFactory
public abstract class AbstractRuleViolationFactory
- extends Object
- implements RuleViolationFactory
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRuleViolationFactory
public AbstractRuleViolationFactory()
addViolation
public void addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
Object[] args)
- Description copied from interface:
RuleViolationFactory
- Adds a violation to the report.
- Specified by:
addViolation
in interface RuleViolationFactory
- Parameters:
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 message
addViolation
public void addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
int beginLine,
int endLine,
Object[] args)
- Specified by:
addViolation
in interface RuleViolationFactory
createRuleViolation
protected abstract RuleViolation createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message)
createRuleViolation
protected abstract RuleViolation createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message,
int beginLine,
int endLine)
Copyright © 2002-2015 InfoEther. All Rights Reserved.