1 package net.sourceforge.pmd;
2
3 import java.util.List;
4
5 public interface Rule {
6 public static final int LOWEST_PRIORITY = 5;
7 public static final String[] PRIORITIES = {"High", "Medium High", "Medium", "Medium Low", "Low"};
8
9 String getName();
10
11 String getMessage();
12
13 String getDescription();
14
15 String getExample();
16
17 void setName(String name);
18
19 void setMessage(String message);
20
21 void setDescription(String description);
22
23 void setExample(String example);
24
25 void apply(List astCompilationUnits, RuleContext ctx);
26
27 boolean hasProperty(String name);
28
29 void addProperty(String name, String property);
30
31 int getIntProperty(String name);
32
33 boolean getBooleanProperty(String name);
34
35 String getStringProperty(String name);
36
37 double getDoubleProperty(String name);
38
39 RuleProperties getProperties();
40
41 boolean include();
42
43 void setInclude(boolean include);
44
45 int getPriority();
46
47 String getPriorityName();
48
49 void setPriority(int priority);
50 }
This page was automatically generated by Maven