View Javadoc

    1   package net.sourceforge.pmd.lang.jsp.rule;
    2
    3   import net.sourceforge.pmd.Rule;
    4   import net.sourceforge.pmd.RuleContext;
    5   import net.sourceforge.pmd.RuleViolation;
    6   import net.sourceforge.pmd.lang.ast.Node;
    7   import net.sourceforge.pmd.lang.jsp.ast.JspNode;
    8   import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
    9   import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
    10  import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
    11
    12  public final class JspRuleViolationFactory extends AbstractRuleViolationFactory {
    13
    14      public static final RuleViolationFactory INSTANCE = new JspRuleViolationFactory();
    15
    16      private JspRuleViolationFactory() {
    17      }
    18
    19      @Override
    20      protected RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message) {
    21      	return new ParametricRuleViolation<JspNode>(rule, ruleContext, (JspNode) node, message);
    22      }
    23
    24      protected RuleViolation createRuleViolation(Rule rule, RuleContext ruleContext, Node node, String message, int beginLine, int endLine) {
    25  		return null;	// FIXME
    26  	}
    27  }