1 package net.sourceforge.pmd.dfa; 2 3 import net.sourceforge.pmd.Rule; 4 import net.sourceforge.pmd.RuleContext; 5 import net.sourceforge.pmd.RuleViolation; 6 import net.sourceforge.pmd.ast.SimpleNode; 7 8 15 public class DaaRuleViolation extends RuleViolation { 16 private String variableName; 17 private int beginLine; 18 private int endLine; 19 private String type; 20 21 public DaaRuleViolation(Rule rule, RuleContext ctx, SimpleNode node, String type, String msg, String var, int beginLine, int endLine) { 22 super(rule, ctx, node, msg); 23 this.variableName = var; 24 this.beginLine = beginLine; 25 this.endLine = endLine; 26 this.type = type; 27 } 28 29 public String getVariableName() { 30 return variableName; 31 } 32 33 public int getBeginLine() { 34 return beginLine; 35 } 36 37 public int getEndLine() { 38 return endLine; 39 } 40 41 public String getType() { 42 return type; 43 } 44 } 45 | Popular Tags |