| java.lang.Object net.sourceforge.pmd.RuleChain
RuleChain | public class RuleChain (Code) | | The RuleChain is a means by which Rules can participate in a uniform
visitation of the AST, and not need perform their own independent visitation.
The RuleChain exists as a means to improve the speed of PMD when there are
many Rules.
|
Method Summary | |
public void | add(RuleSet ruleSet) Add all Rules from the given RuleSet which want to participate in the
RuleChain. | public void | add(Language language, Rule rule) Add the given Rule if it wants to participate in the RuleChain. | public void | apply(List<CompilationUnit> astCompilationUnits, RuleContext ctx, Language language) Apply the RuleChain to the given ASTCompilationUnits using the given
RuleContext, for those rules using the given Language. |
add | public void add(RuleSet ruleSet)(Code) | | Add all Rules from the given RuleSet which want to participate in the
RuleChain.
Parameters: ruleSet - The RuleSet to add Rules from. |
add | public void add(Language language, Rule rule)(Code) | | Add the given Rule if it wants to participate in the RuleChain.
Parameters: language - The Language used by the Rule. Parameters: rule - The Rule to add. |
apply | public void apply(List<CompilationUnit> astCompilationUnits, RuleContext ctx, Language language)(Code) | | Apply the RuleChain to the given ASTCompilationUnits using the given
RuleContext, for those rules using the given Language.
Parameters: astCompilationUnits - The ASTCompilationUnits. Parameters: ctx - The RuleContext. Parameters: language - The Language. |
|
|