JspRuleViolationFactory.java
01 package net.sourceforge.pmd.lang.jsp.rule;
02 
03 import net.sourceforge.pmd.Rule;
04 import net.sourceforge.pmd.RuleContext;
05 import net.sourceforge.pmd.RuleViolation;
06 import net.sourceforge.pmd.lang.ast.Node;
07 import net.sourceforge.pmd.lang.jsp.ast.JspNode;
08 import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
09 import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
10 
11 public final class JspRuleViolationFactory extends AbstractRuleViolationFactory {
12 
13     public static final RuleViolationFactory INSTANCE = new JspRuleViolationFactory();
14 
15     private JspRuleViolationFactory() {
16     }
17 
18     @Override
19     protected RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message) {
20   return new JspRuleViolation(rule, ruleContext, (JspNodenode, message);
21     }
22 }