public class GroovySourceAST extends CommonAST implements Comparable, SourceInfo
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 |
---|---|---|
|
public GroovySourceAST |
childAt(int position) |
|
public GroovySourceAST |
childOfType(int type) |
|
public List<GroovySourceAST> |
childrenOfType(int type) |
|
public int |
compareTo(Object object) |
|
public int |
getColumn() |
|
public int |
getColumnLast() |
|
public int |
getLine() |
|
public int |
getLineLast() |
|
public String |
getSnippet() |
|
public void |
initialize(AST ast) |
|
public void |
initialize(Token t) |
|
public void |
setColumn(int column) |
|
public void |
setColumnLast(int colLast) |
|
public void |
setLast(Token last) |
|
public void |
setLine(int line) |
|
public void |
setLineLast(int lineLast) |
|
public void |
setSnippet(String snippet) |
Methods inherited from class | Name |
---|---|
class CommonAST |
initialize, initialize, initialize, getType, getText, setText, setType, equals, toString, decode, encode, findAll, toStringList, equalsTreePartial, setFirstChild, setNextSibling, equalsList, equalsTree, findAllPartial, equalsListPartial, addChild, getLine, getNextSibling, getFirstChild, getColumn, xmlSerializeRootOpen, xmlSerializeRootClose, setVerboseStringConversion, xmlSerializeNode, xmlSerialize, removeChildren, toStringTree, getNumberOfChildren, getTokenNames, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.