groovy / 4.0 / org / codehaus / groovy / ast / expr / closurelistexpression.html

[Java] Class ClosureListExpression

  • org.codehaus.groovy.ast.expr.ClosureListExpression
public class ClosureListExpression
extends ListExpression

This class represents a list of expressions used to create closures. Example: def foo = (1;2;;) The right side is a ClosureListExpression consisting of two ConstantExpressions for the values 1 and 2, and two EmptyStatement entries. The ClosureListExpression defines a new variable scope. All created Closures share this scope.

Constructor Detail

public ClosureListExpression(List<Expression> expressions)

public ClosureListExpression()

Method Detail

@Override public String getText()

public VariableScope getVariableScope()

public void setVariableScope(VariableScope scope)

@Override public Expression transformExpression(ExpressionTransformer transformer)

@Override public void visit(GroovyCodeVisitor visitor)

© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/codehaus/groovy/ast/expr/ClosureListExpression.html