net.sourceforge.pmd
public abstract class AbstractRuleChainVisitor extends Object implements RuleChainVisitor
Field Summary | |
---|---|
protected Map<String,List<SimpleNode>> | nodeNameToNodes
This is a mapping from node names to nodes instances for the current AST. |
protected Map<RuleSet,List<Rule>> | ruleSetRules
These are all the rules participating in the RuleChain, grouped by RuleSet. |
Method Summary | |
---|---|
void | add(RuleSet ruleSet, Rule rule) |
protected void | clear()
Clears the internal data structure used to manage the nodes visited
between visiting different ASTs. |
protected void | indexNode(SimpleNode node)
Index a single node for visitation by rules. |
protected abstract void | indexNodes(List<CompilationUnit> astCompilationUnits, RuleContext ctx)
Index all nodes for visitation by rules. |
protected void | initialize()
Initialize the RuleChainVisitor to be ready to perform visitations. |
protected abstract void | visit(Rule rule, SimpleNode node, RuleContext ctx)
Visit the given rule to the given node. |
void | visitAll(List<CompilationUnit> astCompilationUnits, RuleContext ctx) |
See Also: RuleChainVisitor
See Also: RuleChainVisitor