Top Description Fields Constructors Methods
org.codehaus.groovy.ast.expr

public Class EmptyExpression

extends Expression
Class Inheritance
Imports
org.codehaus.groovy.ast.ASTNode, .AnnotationNode, .ClassNode, .GroovyCodeVisitor, java.util.Map

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.
See Also
org.codehaus.groovy.ast.stmt.EmptyStatement

Field Summary

Modifier and TypeField and Description
public static final EmptyExpression
INSTANCE

Immutable singleton that is recommended for use when source range or any other occurrence-specific metadata is not needed.

Inherited from org.codehaus.groovy.ast.expr.Expression:
EMPTY_ARRAY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Expression
transformExpression(ExpressionTransformer transformer)

Implements abstract org.codehaus.groovy.ast.expr.Expression.transformExpression.

Return a copy of the expression calling the transformer on any nested expressions
public void
Inherited from org.codehaus.groovy.ast.expr.Expression:
getTypesetTypetransformExpressionstransformExpressions

Field Detail

INSTANCEback to summary
public static final EmptyExpression INSTANCE

Immutable singleton that is recommended for use when source range or any other occurrence-specific metadata is not needed.

Constructor Detail

EmptyExpressionback to summary
public EmptyExpression()
See Also
EmptyExpression#INSTANCE

Method Detail

transformExpressionback to summary
public Expression transformExpression(ExpressionTransformer transformer)

Implements abstract org.codehaus.groovy.ast.expr.Expression.transformExpression.

Doc from org.codehaus.groovy.ast.expr.Expression.transformExpression.

Return a copy of the expression calling the transformer on any nested expressions

Annotations
@Override
visitback to summary
public void visit(GroovyCodeVisitor visitor)

Overrides org.codehaus.groovy.ast.ASTNode.visit.

Annotations
@Override