public class ClosureListExpression extends ListExpression
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 | Description |
|---|---|
ClosureListExpression() |
|
ClosureListExpression(List<Expression> expressions) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getText() |
|
VariableScope |
getVariableScope() |
|
void |
setVariableScope(VariableScope scope) |
|
Expression |
transformExpression(ExpressionTransformer transformer) |
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticcopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePositiongetType, setType, transformExpressions, transformExpressionsaddExpression, getExpression, getExpressions, isWrapped, setWrapped, toStringpublic ClosureListExpression(List<Expression> expressions)
public ClosureListExpression()
public void visit(GroovyCodeVisitor visitor)
visit in class ListExpressionpublic Expression transformExpression(ExpressionTransformer transformer)
ExpressiontransformExpression in class ListExpressionpublic void setVariableScope(VariableScope scope)
public VariableScope getVariableScope()
public String getText()
getText in class ListExpression