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 and Description |
|---|
ClosureListExpression() |
ClosureListExpression(List<Expression> expressions) |
| Modifier and Type | Method and 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) |
addExpression, getExpression, getExpressions, isWrapped, setWrapped, toStringgetType, setType, transformExpressions, transformExpressionsaddAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticcopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePositionpublic 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