Interface RuleChainVisitor

  • All Known Implementing Classes:
    AbstractRuleChainVisitor

    @Deprecated
    public interface RuleChainVisitor
    Deprecated.
    This interface will be removed. It's only used in internal code. Language implementors no longer need to register a rulechain visitor implementation in the BaseLanguageModule constructor.
    The RuleChainVisitor understands how to visit an AST for a particular Language.
    • Method Detail

      • add

        void add​(RuleSet ruleSet,
                 Rule rule)
        Deprecated.
        Add the given rule to the visitor.
        Parameters:
        ruleSet - The RuleSet to which the rule belongs.
        rule - The rule to add.
      • visitAll

        void visitAll​(List<Node> nodes,
                      RuleContext ctx)
        Deprecated.
        Visit all the given Nodes provided using the given RuleContext. Every Rule added will visit the AST as appropriate.
        Parameters:
        nodes - The Nodes to visit.
        ctx - The RuleContext.