net.sourceforge.pmd
public interface Rule
| Field Summary | |
|---|---|
| static int | LOWEST_PRIORITY |
| static String[] | PRIORITIES |
| Method Summary | |
|---|---|
| void | addExample(String example) |
| void | addProperties(Properties properties) |
| void | addProperty(String name, String property) |
| void | addRuleChainVisit(String astNodeName) |
| void | apply(List astCompilationUnits, RuleContext ctx) |
| boolean | getBooleanProperty(String name) |
| String | getDescription() |
| double | getDoubleProperty(String name) |
| String | getExample()
Still used by the JDeveloper plugin
|
| List<String> | getExamples() |
| String | getExternalInfoUrl() |
| int | getIntProperty(String name) |
| String | getMessage() |
| String | getName() |
| int | getPriority() |
| String | getPriorityName() |
| Properties | getProperties() |
| List<String> | getRuleChainVisits() |
| String | getRuleSetName() |
| String | getStringProperty(String name) |
| boolean | hasProperty(String name) |
| boolean | include() |
| PropertyDescriptor | propertyDescriptorFor(String name) |
| void | setDescription(String description) |
| void | setExternalInfoUrl(String url) |
| void | setInclude(boolean include) |
| void | setMessage(String message) |
| void | setName(String name) |
| void | setPriority(int priority) |
| void | setRuleSetName(String name) |
| void | setUsesDFA() |
| void | setUsesTypeResolution() |
| boolean | usesDFA() |
| boolean | usesRuleChain() |
| boolean | usesTypeResolution() |
Deprecated: use getExamples(), since we now support multiple examples
Still used by the JDeveloper plugin