|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode
public class ASTNode extends java.lang.Object
Base class for any AST node. This class supports basic information used in all nodes of the AST
Method Summary | |
---|---|
void
|
copyNodeMetaData(ASTNode other)
Copies all node meta data from the other node to this one |
int
|
getColumnNumber()
|
int
|
getLastColumnNumber()
|
int
|
getLastLineNumber()
|
int
|
getLineNumber()
|
java.lang.Object
|
getNodeMetaData(java.lang.Object key)
Gets the node meta data. |
java.lang.String
|
getText()
|
java.lang.Object
|
putNodeMetaData(java.lang.Object key, java.lang.Object value)
Sets the node meta data but allows overwriting values. |
void
|
removeNodeMetaData(java.lang.Object key)
Removes a node meta data entry. |
void
|
setColumnNumber(int columnNumber)
|
void
|
setLastColumnNumber(int lastColumnNumber)
|
void
|
setLastLineNumber(int lastLineNumber)
|
void
|
setLineNumber(int lineNumber)
|
void
|
setNodeMetaData(java.lang.Object key, java.lang.Object value)
Sets the node meta data. |
void
|
setSourcePosition(ASTNode node)
Sets the source position using another ASTNode. |
void
|
visit(GroovyCodeVisitor visitor)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public void copyNodeMetaData(ASTNode other)
other
- - the other node
public int getColumnNumber()
public int getLastColumnNumber()
public int getLastLineNumber()
public int getLineNumber()
public java.lang.Object getNodeMetaData(java.lang.Object key)
key
- - the meta data key
public java.lang.String getText()
public java.lang.Object putNodeMetaData(java.lang.Object key, java.lang.Object value)
key
- - the meta data keyvalue
- - the meta data value
public void removeNodeMetaData(java.lang.Object key)
key
- - the meta data key
public void setColumnNumber(int columnNumber)
public void setLastColumnNumber(int lastColumnNumber)
public void setLastLineNumber(int lastLineNumber)
public void setLineNumber(int lineNumber)
public void setNodeMetaData(java.lang.Object key, java.lang.Object value)
key
- - the meta data keyvalue
- - the meta data value
public void setSourcePosition(ASTNode node)
node
- - the node used to configure the position information
public void visit(GroovyCodeVisitor visitor)
Groovy Documentation