Package net.sourceforge.pmd.cache
Class CachedRuleMapper
- java.lang.Object
-
- net.sourceforge.pmd.cache.CachedRuleMapper
-
@Deprecated @InternalApi public class CachedRuleMapper extends Object
Deprecated.This is internal API, will be hidden with 7.0.0A mapper from rule class names to rule instances for cached rules.
-
-
Constructor Summary
Constructors Constructor Description CachedRuleMapper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Rule
getRuleForClass(String className, String ruleName, String languageName)
Deprecated.Finds a rule instance for the given rule class name, name and target languagevoid
initialize(RuleSets rs)
Deprecated.Initialize the mapper with the given rulesets.
-
-
-
Method Detail
-
getRuleForClass
public Rule getRuleForClass(String className, String ruleName, String languageName)
Deprecated.Finds a rule instance for the given rule class name, name and target language- Parameters:
className
- The name of the rule class that generated the cache entryruleName
- The name of the rule that generated the cache entrylanguageName
- The terse name of the language for which the rule applies- Returns:
- The requested rule
-
initialize
public void initialize(RuleSets rs)
Deprecated.Initialize the mapper with the given rulesets.- Parameters:
rs
- The rulesets from which to retrieve rules.
-
-