public class ASTNode extends Object implements NodeMetaDataHandler
Constructor and Description |
---|
ASTNode() |
Modifier and Type | Method and Description |
---|---|
void |
copyNodeMetaData(ASTNode other)
Copies all node meta data from the other node to this one
|
int |
getColumnNumber() |
int |
getLastColumnNumber() |
int |
getLastLineNumber() |
int |
getLineNumber() |
Map<?,?> |
getMetaDataMap() |
String |
getText() |
int |
hashCode() |
void |
setColumnNumber(int columnNumber) |
void |
setLastColumnNumber(int lastColumnNumber) |
void |
setLastLineNumber(int lastLineNumber) |
void |
setLineNumber(int lineNumber) |
void |
setMetaDataMap(Map<?,?> metaDataMap) |
void |
setSourcePosition(ASTNode node)
Sets the source position using another ASTNode.
|
void |
visit(GroovyCodeVisitor visitor) |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public void visit(GroovyCodeVisitor visitor)
public String getText()
public int getLineNumber()
public void setLineNumber(int lineNumber)
public int getColumnNumber()
public void setColumnNumber(int columnNumber)
public int getLastLineNumber()
public void setLastLineNumber(int lastLineNumber)
public int getLastColumnNumber()
public void setLastColumnNumber(int lastColumnNumber)
public void setSourcePosition(ASTNode node)
node
- - the node used to configure the position informationpublic void copyNodeMetaData(ASTNode other)
other
- - the other nodepublic Map<?,?> getMetaDataMap()
getMetaDataMap
in interface NodeMetaDataHandler
public void setMetaDataMap(Map<?,?> metaDataMap)
setMetaDataMap
in interface NodeMetaDataHandler