1 4 package net.sourceforge.pmd; 5 6 import java.util.Map ; 7 8 public class RuleContext { 9 10 private Report report = new Report(); 11 private String sourceCodeFilename; 12 private SourceType sourceType; 13 14 public Report getReport() { 15 return report; 16 } 17 18 public void setReport(Report report) { 19 this.report = report; 20 } 21 22 public String getSourceCodeFilename() { 23 return sourceCodeFilename; 24 } 25 26 public void setSourceCodeFilename(String filename) { 27 this.sourceCodeFilename = filename; 28 } 29 30 public void excludeLines(Map lines) { 31 report.exclude(lines); 32 } 33 34 public SourceType getSourceType() { 35 return this.sourceType; 36 } 37 38 public void setSourceType(SourceType t) { 39 this.sourceType = t; 40 } 41 } 42 | Popular Tags |