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, transformExpressionsgetAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSyntheticcopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getTextpublic static final EmptyExpression INSTANCE
@Deprecated public EmptyExpression()
public Expression transformExpression(ExpressionTransformer transformer)
ExpressiontransformExpression in class Expressionpublic void visit(GroovyCodeVisitor visitor)
public void setType(ClassNode t)
setType in class Expressionpublic void addAnnotation(AnnotationNode value)
addAnnotation in class AnnotatedNodepublic void addAnnotations(java.util.List<AnnotationNode> annotations)
addAnnotations in class AnnotatedNodepublic void setSynthetic(boolean synthetic)
AnnotatedNodesetSynthetic in class AnnotatedNodesynthetic - - if true this node is marked as
added by the compilerpublic void setDeclaringClass(ClassNode declaringClass)
setDeclaringClass in class AnnotatedNodedeclaringClass - - The declaringClass to set.public void setHasNoRealSourcePosition(boolean value)
setHasNoRealSourcePosition in class AnnotatedNodepublic void setLineNumber(int lineNumber)
setLineNumber in class ASTNodepublic void setColumnNumber(int columnNumber)
setColumnNumber in class ASTNodepublic void setLastLineNumber(int lastLineNumber)
setLastLineNumber in class ASTNodepublic void setLastColumnNumber(int lastColumnNumber)
setLastColumnNumber in class ASTNodepublic void setSourcePosition(ASTNode node)
ASTNodesetSourcePosition in class ASTNodenode - - the node used to configure the position informationpublic void copyNodeMetaData(NodeMetaDataHandler other)
NodeMetaDataHandlercopyNodeMetaData in interface NodeMetaDataHandlercopyNodeMetaData in class ASTNodeother - - the other nodepublic void setNodeMetaData(java.lang.Object key,
java.lang.Object value)
NodeMetaDataHandlersetNodeMetaData in interface NodeMetaDataHandlersetNodeMetaData in class ASTNodekey - - the meta data keyvalue - - the meta data valuepublic java.lang.Object putNodeMetaData(java.lang.Object key,
java.lang.Object value)
NodeMetaDataHandlerputNodeMetaData in interface NodeMetaDataHandlerputNodeMetaData in class ASTNodekey - - the meta data keyvalue - - the meta data valuepublic void removeNodeMetaData(java.lang.Object key)
NodeMetaDataHandlerremoveNodeMetaData in interface NodeMetaDataHandlerremoveNodeMetaData in class ASTNodekey - - the meta data keypublic void setMetaDataMap(java.util.Map<?,?> metaDataMap)
setMetaDataMap in interface NodeMetaDataHandlersetMetaDataMap in class ASTNode