Top Constructors Methods
org.codehaus.groovy.antlr

public Class AntlrASTProcessSnippets

extends Object
implements AntlrASTProcessor
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.antlr.AntlrASTProcessor
Imports
antlr.collections.AST, java.util.ArrayList, .Iterator, .List

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AST

Returns:

the decorated AST
process
(AST
the AST to decorate
t
)

Implements org.codehaus.groovy.antlr.AntlrASTProcessor.process.

decorate antlr AST with ending line/col info, and if possible the snippet of source from the start/end line/col for each node.
private void
traverse(GroovySourceAST
the AST node to traverse
t
,
List<E>
A list to add line/col info to
l
,
Iterator<E>
An iterator over a list of line/col
itr
)

traverse an AST node

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AntlrASTProcessSnippetsback to summary
public AntlrASTProcessSnippets()

Method Detail

processback to summary
public AST process(AST t)

Implements org.codehaus.groovy.antlr.AntlrASTProcessor.process.

decorate antlr AST with ending line/col info, and if possible the snippet of source from the start/end line/col for each node.

Parameters
t:AST

the AST to decorate

Returns:AST

the decorated AST

traverseback to summary
private void traverse(GroovySourceAST t, List<E> l, Iterator<E> itr)

traverse an AST node

Parameters
t:GroovySourceAST

the AST node to traverse

l:List<E>

A list to add line/col info to

itr:Iterator<E>

An iterator over a list of line/col