public class ListOfExpressionsExpression
extends Expression
This class is used internally by the compiler to transform expressions like multiple assignments into a list of assignments.
| Fields inherited from class | Fields |
|---|---|
class Expression |
EMPTY_ARRAY |
| Constructor and description |
|---|
ListOfExpressionsExpression()Creates an empty list-backed expression container. |
ListOfExpressionsExpression(List<Expression> expressions)Creates a container for the supplied expressions. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addExpression(Expression expression)Appends an expression to this container. |
|
public Expression |
transformExpression(ExpressionTransformer transformer)Transforms each contained expression with the supplied transformer. |
|
public void |
visit(GroovyCodeVisitor visitor)Visits each contained expression in declaration order. |
| Methods inherited from class | Name |
|---|---|
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, 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 |
Creates an empty list-backed expression container.
Creates a container for the supplied expressions.
expressions - the expressions to visit as a groupAppends an expression to this container.
expression - the expression to addTransforms each contained expression with the supplied transformer.
transformer - the expression transformer to applyVisits each contained expression in declaration order.
visitor - the visitor to acceptCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.