public class GroovySourceAST extends CommonAST
We have an AST subclass so we can track source information. Very odd that ANTLR doesn't do this by default.
| Constructor and description | 
|---|
                                GroovySourceAST
                                () | 
                        
                                GroovySourceAST
                                (Token t) | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            GroovySourceAST | 
                            childAt(int position) | 
                        
 | 
                            GroovySourceAST | 
                            childOfType(int type) | 
                        
 | 
                            List<GroovySourceAST> | 
                            childrenOfType(int type) | 
                        
 | 
                            int | 
                            compareTo(Object object) | 
                        
 | 
                            int | 
                            getColumn() | 
                        
 | 
                            int | 
                            getColumnLast() | 
                        
 | 
                            int | 
                            getLine() | 
                        
 | 
                            int | 
                            getLineLast() | 
                        
 | 
                            String | 
                            getSnippet() | 
                        
 | 
                            void | 
                            initialize(AST ast) | 
                        
 | 
                            void | 
                            initialize(Token t) | 
                        
 | 
                            void | 
                            setColumn(int column) | 
                        
 | 
                            void | 
                            setColumnLast(int colLast) | 
                        
 | 
                            void | 
                            setLast(Token last) | 
                        
 | 
                            void | 
                            setLine(int line) | 
                        
 | 
                            void | 
                            setLineLast(int lineLast) | 
                        
 | 
                            void | 
                            setSnippet(String snippet) | 
                        
| Methods inherited from class | Name | 
|---|---|
class CommonAST | 
                            initialize, initialize, initialize, getType, setType, setText, getText, equals, toString, decode, encode, findAll, xmlSerializeRootClose, setVerboseStringConversion, getNumberOfChildren, xmlSerializeRootOpen, toStringList, setNextSibling, setFirstChild, getLine, getColumn, getFirstChild, getNextSibling, addChild, toStringTree, getTokenNames, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAllPartial, xmlSerializeNode, removeChildren, xmlSerialize, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll | 
                        
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.