net.sourceforge.pmd
public class RuleChain extends Object
Method Summary | |
---|---|
void | add(RuleSet ruleSet)
Add all Rules from the given RuleSet which want to participate in the
RuleChain.
|
void | add(Language language, Rule rule)
Add the given Rule if it wants to participate in the RuleChain.
|
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.
|
Parameters: ruleSet The RuleSet to add Rules from.
Parameters: language The Language used by the Rule. rule The Rule to add.
Parameters: astCompilationUnits The ASTCompilationUnits. ctx The RuleContext. language The Language.