|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.ASTNode
public class ASTNode extends 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()
|
Object
|
getNodeMetaData(Object key)
Gets the node meta data. |
String
|
getText()
|
Object
|
putNodeMetaData(Object key, Object value)
Sets the node meta data but allows overwriting values. |
void
|
removeNodeMetaData(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(Object key, 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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, 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 Object getNodeMetaData(Object key)
key
- - the meta data key
public String getText()
public Object putNodeMetaData(Object key, Object value)
key
- - the meta data keyvalue
- - the meta data value
public void removeNodeMetaData(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(Object key, 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)
Copyright © 2003-2013 The Codehaus. All rights reserved.