net.sourceforge.pmd.jsp.rules
public abstract class AbstractJspRule extends JspParserVisitorAdapter implements Rule
Method Summary | |
---|---|
void | addExample(String example) |
void | addProperties(Properties properties) |
void | addProperty(String name, String value) |
void | addRuleChainVisit(String astNodeName) |
protected void | addViolation(Object data, SimpleNode node)
Adds a violation to the report.
|
protected void | addViolation(Object data, SimpleNode node, String embed)
Adds a violation to the report.
|
protected void | addViolation(Object data, Node node, Object[] args)
Adds a violation to the report.
|
protected void | addViolationWithMessage(Object data, SimpleNode node, String msg)
Adds a violation to the report.
|
void | apply(List acus, RuleContext ctx) |
boolean | equals(Object o)
Test if rules are equals. |
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) |
int | hashCode()
Return a hash code to conform to equality. |
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 ruleSetName) |
void | setUsesDFA() |
void | setUsesTypeResolution() |
boolean | usesDFA() |
boolean | usesRuleChain() |
boolean | usesTypeResolution() |
protected void | visitAll(List acus, RuleContext ctx) |
Parameters: ctx the RuleContext node the node that produces the violation
Parameters: ctx the RuleContext node the node that produces the violation embed a variable to embed in the rule violation message
Parameters: ctx the RuleContext node the node that produces the violation, may be null, in which case all line and column info will be set to zero args objects to embed in the rule violation message
Parameters: ctx the RuleContext node the node that produces the violation msg specific message to put in the report
Deprecated: use getExamples(), since we now support multiple examples
Still used by the JDeveloper plugin