|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.antlr.AntlrASTProcessSnippets
public class AntlrASTProcessSnippets
Constructor Summary | |
---|---|
AntlrASTProcessSnippets()
|
Method Summary | |
---|---|
antlr.collections.AST |
process(antlr.collections.AST t)
decorate antlr AST with ending line/col info, and if possible the snipppet of source from the start/end line/col for each node. |
private void |
traverse(GroovySourceAST t,
java.util.List l,
java.util.Iterator itr)
traverse an AST node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntlrASTProcessSnippets()
Method Detail |
---|
public antlr.collections.AST process(antlr.collections.AST t)
process
in interface AntlrASTProcessor
t
- the AST to decorate
private void traverse(GroovySourceAST t, java.util.List l, java.util.Iterator itr)
t
- the AST node to traversel
- A list to add line/col info toitr
- An iterator over a list of line/col
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |