| java.lang.Object net.sourceforge.pmd.AbstractRuleChainVisitor
All known Subclasses: net.sourceforge.pmd.ast.JavaRuleChainVisitor, net.sourceforge.pmd.jsp.ast.JspRuleChainVisitor,
AbstractRuleChainVisitor | abstract public class AbstractRuleChainVisitor implements RuleChainVisitor(Code) | | This is a base class for RuleChainVisitor implementations which
extracts interesting nodes from an AST, and lets each Rule visit
the nodes it has expressed interest in.
|
nodeNameToNodes | protected Map<String, List<SimpleNode>> nodeNameToNodes(Code) | | This is a mapping from node names to nodes instances for the current AST.
|
rules | protected List<Rule> rules(Code) | | These are all the rules participating in the RuleChain.
|
clear | protected void clear()(Code) | | Clears the internal data structure used to manage the nodes visited
between visiting different ASTs.
|
indexNode | protected void indexNode(SimpleNode node)(Code) | | Index a single node for visitation by rules.
|
initialize | protected void initialize()(Code) | | Initialize the RuleChainVisitor to be ready to perform visitations. This
method should not be called until it is known that all Rules participating
in the RuleChain are ready to be initialized themselves. Some rules
may require full initialization to determine if they will participate in
the RuleChain, so this has been delayed as long as possible to ensure
that manipulation of the Rules is no longer occurring.
|
|
|