public class RuleChain
extends java.lang.Object
Constructor and Description |
---|
RuleChain() |
Modifier and Type | Method and Description |
---|---|
void |
add(RuleSet ruleSet)
Add all Rules from the given RuleSet which want to participate in the
RuleChain.
|
void |
apply(java.util.List<Node> nodes,
RuleContext ctx,
Language language)
Apply the RuleChain to the given Nodes using the given RuleContext, for
those rules using the given Language.
|
public void add(RuleSet ruleSet)
ruleSet
- The RuleSet to add Rules from.public void apply(java.util.List<Node> nodes, RuleContext ctx, Language language)
nodes
- The Nodes.ctx
- The RuleContext.language
- The Language.Copyright © 2002–2018 PMD. All rights reserved.