Class CachedRuleMapper


  • @Deprecated
    @InternalApi
    public class CachedRuleMapper
    extends Object
    Deprecated.
    This is internal API, will be hidden with 7.0.0
    A mapper from rule class names to rule instances for cached rules.
    • Constructor Detail

      • CachedRuleMapper

        public CachedRuleMapper()
        Deprecated.
    • 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 entry
        ruleName - The name of the rule that generated the cache entry
        languageName - 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.