public class ASTNode extends Object implements NodeMetaDataHandler
Base class for any AST node. This class supports basic information used in all nodes of the AST:
Type Params | Return Type | Name and description |
---|---|---|
public void |
copyNodeMetaData(ASTNode other) Copies all node meta data from the other node to this one | |
public int |
getColumnNumber() | |
public int |
getLastColumnNumber() | |
public int |
getLastLineNumber() | |
public int |
getLineNumber() | |
public Map<?, ?> |
getMetaDataMap() | |
public String |
getText() | |
public void |
setColumnNumber(int columnNumber) | |
public void |
setLastColumnNumber(int lastColumnNumber) | |
public void |
setLastLineNumber(int lastLineNumber) | |
public void |
setLineNumber(int lineNumber) | |
public void |
setMetaDataMap(Map<?, ?> metaDataMap) | |
public void |
setSourcePosition(ASTNode node) Sets the source position using another ASTNode. | |
public void |
visit(GroovyCodeVisitor visitor) |
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copies all node meta data from the other node to this one
other
- - the other nodeSets the source position using another ASTNode. The sourcePosition consists of a line/column pair for the start and a line/column pair for the end of the expression or statement
node
- - the node used to configure the position information
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/ASTNode.html