Class SourceCodeTraversal

  • All Implemented Interfaces:
    AntlrASTProcessor

    public class SourceCodeTraversal
    extends TraversalHelper
    A treewalker for the antlr generated AST that attempts to visit the AST nodes in the order needed to generate valid groovy source code.
    • Constructor Detail

      • SourceCodeTraversal

        public SourceCodeTraversal​(Visitor visitor)
        Constructs a treewalker for the antlr generated AST that attempts to visit the AST nodes in the order needed to generate valid groovy source code.
        Parameters:
        visitor - the visitor implementation to call for each AST node.