View Javadoc

1   /***
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd;
5   
6   import java.util.Set;
7   
8   public class RuleContext {
9   
10      private Report report = new Report();
11      private String sourceCodeFilename;
12  
13      public Report getReport() {
14          return report;
15      }
16  
17      public void setReport(Report report) {
18          this.report = report;
19      }
20  
21      public String getSourceCodeFilename() {
22          return sourceCodeFilename;
23      }
24  
25      public void setSourceCodeFilename(String filename) {
26          this.sourceCodeFilename = filename;
27      }
28  
29      public void excludeLines(Set lines) {
30          report.exclude(lines);
31      }
32  }