Package net.sourceforge.pmd
Class RuleChain
- java.lang.Object
-
- net.sourceforge.pmd.RuleChain
-
@Deprecated @InternalApi public class RuleChain extends Object
Deprecated.Internal API, will be removed with PMD 7.0.0.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.
-
-
Constructor Summary
Constructors Constructor Description RuleChain()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(RuleSet ruleSet)Deprecated.Add all Rules from the given RuleSet which want to participate in the RuleChain.voidapply(List<Node> nodes, RuleContext ctx, Language language)Deprecated.Apply the RuleChain to the given Nodes using the given RuleContext, for those rules using the given Language.
-
-
-
Method Detail
-
add
public void add(RuleSet ruleSet)
Deprecated.Add all Rules from the given RuleSet which want to participate in the RuleChain.- Parameters:
ruleSet- The RuleSet to add Rules from.
-
apply
public void apply(List<Node> nodes, RuleContext ctx, Language language)
Deprecated.Apply the RuleChain to the given Nodes using the given RuleContext, for those rules using the given Language.- Parameters:
nodes- The Nodes.ctx- The RuleContext.language- The Language.
-
-