Interface RuleChainVisitor

  • All Known Implementing Classes:

    public interface RuleChainVisitor
    The RuleChainVisitor understands how to visit an AST for a particular Language.
    • Method Detail

      • add

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

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