net.sourceforge.pmd.jsp.rules
public abstract class AbstractJspRule extends CommonAbstractRule implements JspParserVisitor
Method Summary | |
---|---|
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) |
Object | visit(SimpleNode node, Object data) |
Object | visit(ASTCompilationUnit node, Object data) |
Object | visit(ASTContent node, Object data) |
Object | visit(ASTJspDirective node, Object data) |
Object | visit(ASTJspDirectiveAttribute node, Object data) |
Object | visit(ASTJspScriptlet node, Object data) |
Object | visit(ASTJspExpression node, Object data) |
Object | visit(ASTJspDeclaration node, Object data) |
Object | visit(ASTJspComment node, Object data) |
Object | visit(ASTText node, Object data) |
Object | visit(ASTUnparsedText node, Object data) |
Object | visit(ASTElExpression node, Object data) |
Object | visit(ASTValueBinding node, Object data) |
Object | visit(ASTCData node, Object data) |
Object | visit(ASTElement node, Object data) |
Object | visit(ASTAttribute node, Object data) |
Object | visit(ASTAttributeValue node, Object data) |
Object | visit(ASTJspExpressionInAttribute node, Object data) |
Object | visit(ASTCommentTag node, Object data) |
Object | visit(ASTDeclaration node, Object data) |
Object | visit(ASTDoctypeDeclaration node, Object data) |
Object | visit(ASTDoctypeExternalId node, Object data) |
protected void | visitAll(List acus, RuleContext ctx) |
Parameters: data the RuleContext node the node that produces the violation
Parameters: data the RuleContext node the node that produces the violation embed a variable to embed in the rule violation message
Parameters: data 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: data the RuleContext node the node that produces the violation msg specific message to put in the report