Class FlatNodeListTraversal

java.lang.Object
org.codehaus.groovy.antlr.treewalker.TraversalHelper
org.codehaus.groovy.antlr.treewalker.FlatNodeListTraversal
All Implemented Interfaces:
AntlrASTProcessor

public class FlatNodeListTraversal extends TraversalHelper
A simple iterator over an ordered (flat) List of the nodes of the AST.
Author:
Jeremy Rayner
  • Constructor Details

    • FlatNodeListTraversal

      public FlatNodeListTraversal(Visitor visitor)
  • Method Details

    • process

      public antlr.collections.AST process(antlr.collections.AST t)
      Description copied from interface: AntlrASTProcessor
      performs some processing on the supplied AST node.
      Specified by:
      process in interface AntlrASTProcessor
      Overrides:
      process in class TraversalHelper
      Parameters:
      t - the AST node to process.
      Returns:
      possibly returns the AST modified or null, depends on the implementation.
    • accept

      protected void accept(GroovySourceAST currentNode)
      Specified by:
      accept in class TraversalHelper