public class EmptyExpression extends Expression
EmptyStatement
Modifier and Type | Field and Description |
---|---|
static EmptyExpression |
INSTANCE |
EMPTY_ARRAY
Constructor and Description |
---|
EmptyExpression()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(AnnotationNode value) |
void |
addAnnotations(java.util.List<AnnotationNode> annotations) |
void |
copyNodeMetaData(NodeMetaDataHandler other)
Copies all node meta data from the other node to this one
|
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 |
setDeclaringClass(ClassNode declaringClass) |
void |
setHasNoRealSourcePosition(boolean value) |
void |
setLastColumnNumber(int lastColumnNumber) |
void |
setLastLineNumber(int lastLineNumber) |
void |
setLineNumber(int lineNumber) |
void |
setMetaDataMap(java.util.Map<?,?> metaDataMap) |
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 |
setSynthetic(boolean synthetic)
sets this node as a node added by the compiler.
|
void |
setType(ClassNode t) |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
getType, transformExpressions, transformExpressions
getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText
public static final EmptyExpression INSTANCE
@Deprecated public EmptyExpression()
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public void visit(GroovyCodeVisitor visitor)
public void setType(ClassNode t)
setType
in class Expression
public void addAnnotation(AnnotationNode value)
addAnnotation
in class AnnotatedNode
public void addAnnotations(java.util.List<AnnotationNode> annotations)
addAnnotations
in class AnnotatedNode
public void setSynthetic(boolean synthetic)
AnnotatedNode
setSynthetic
in class AnnotatedNode
synthetic
- - if true this node is marked as
added by the compilerpublic void setDeclaringClass(ClassNode declaringClass)
setDeclaringClass
in class AnnotatedNode
declaringClass
- - The declaringClass to set.public void setHasNoRealSourcePosition(boolean value)
setHasNoRealSourcePosition
in class AnnotatedNode
public void setLineNumber(int lineNumber)
setLineNumber
in class ASTNode
public void setColumnNumber(int columnNumber)
setColumnNumber
in class ASTNode
public void setLastLineNumber(int lastLineNumber)
setLastLineNumber
in class ASTNode
public void setLastColumnNumber(int lastColumnNumber)
setLastColumnNumber
in class ASTNode
public void setSourcePosition(ASTNode node)
ASTNode
setSourcePosition
in class ASTNode
node
- - the node used to configure the position informationpublic void copyNodeMetaData(NodeMetaDataHandler other)
NodeMetaDataHandler
copyNodeMetaData
in interface NodeMetaDataHandler
copyNodeMetaData
in class ASTNode
other
- - the other nodepublic void setNodeMetaData(java.lang.Object key, java.lang.Object value)
NodeMetaDataHandler
setNodeMetaData
in interface NodeMetaDataHandler
setNodeMetaData
in class ASTNode
key
- - the meta data keyvalue
- - the meta data valuepublic java.lang.Object putNodeMetaData(java.lang.Object key, java.lang.Object value)
NodeMetaDataHandler
putNodeMetaData
in interface NodeMetaDataHandler
putNodeMetaData
in class ASTNode
key
- - the meta data keyvalue
- - the meta data valuepublic void removeNodeMetaData(java.lang.Object key)
NodeMetaDataHandler
removeNodeMetaData
in interface NodeMetaDataHandler
removeNodeMetaData
in class ASTNode
key
- - the meta data keypublic void setMetaDataMap(java.util.Map<?,?> metaDataMap)
setMetaDataMap
in interface NodeMetaDataHandler
setMetaDataMap
in class ASTNode