public class ArrayExpression extends Expression
Constructor and Description |
---|
ArrayExpression(ClassNode elementType,
List<Expression> expressions)
Creates an array using an initializer expression
|
ArrayExpression(ClassNode elementType,
List<Expression> expressions,
List<Expression> sizeExpression) |
Modifier and Type | Method and Description |
---|---|
void |
addExpression(Expression expression) |
ClassNode |
getElementType() |
Expression |
getExpression(int i) |
List<Expression> |
getExpressions() |
List<Expression> |
getSizeExpression() |
String |
getText() |
boolean |
isDynamic() |
String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
getType, setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public ArrayExpression(ClassNode elementType, List<Expression> expressions, List<Expression> sizeExpression)
public ArrayExpression(ClassNode elementType, List<Expression> expressions)
public void addExpression(Expression expression)
public List<Expression> getExpressions()
public void visit(GroovyCodeVisitor visitor)
public boolean isDynamic()
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public Expression getExpression(int i)
public ClassNode getElementType()
public List<Expression> getSizeExpression()