public class EmptyExpression extends Expression
Placeholder for an empty expression. Empty expressions are used in closures lists like (;). During class generation empty expressions should be ignored or replaced with a null value.
Modifiers | Name | Description |
---|---|---|
static EmptyExpression |
INSTANCE |
Immutable singleton that is recommended for use when source range or any other occurrence-specific metadata is not needed. |
Fields inherited from class | Fields |
---|---|
class Expression |
EMPTY_ARRAY |
Constructor and description |
---|
EmptyExpression
()
|
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addAnnotation(AnnotationNode node) |
|
public void |
setColumnNumber(int n) |
|
public void |
setDeclaringClass(ClassNode node) |
|
public void |
setHasNoRealSourcePosition(boolean b) |
|
public void |
setLastColumnNumber(int n) |
|
public void |
setLastLineNumber(int n) |
|
public void |
setLineNumber(int n) |
|
public void |
setMetaDataMap(Map<?, ?> meta) |
|
public void |
setSourcePosition(ASTNode node) |
|
public void |
setSynthetic(boolean b) |
|
public void |
setType(ClassNode node) |
|
public Expression |
transformExpression(ExpressionTransformer transformer) |
|
public void |
visit(GroovyCodeVisitor visitor) |
Methods inherited from class | Name |
---|---|
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Immutable singleton that is recommended for use when source range or any other occurrence-specific metadata is not needed.
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.