public class ArrayExpression extends Expression
Constructor and Description |
---|
ArrayExpression(ClassNode elementType,
java.util.List<Expression> expressions)
Creates an array using an initializer expression
|
ArrayExpression(ClassNode elementType,
java.util.List<Expression> expressions,
java.util.List<Expression> sizeExpression) |
Modifier and Type | Method and Description |
---|---|
void |
addExpression(Expression expression) |
ClassNode |
getElementType() |
Expression |
getExpression(int i) |
java.util.List<Expression> |
getExpressions() |
java.util.List<Expression> |
getSizeExpression() |
java.lang.String |
getText() |
boolean |
isDynamic() |
java.lang.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, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public ArrayExpression(ClassNode elementType, java.util.List<Expression> expressions, java.util.List<Expression> sizeExpression)
public ArrayExpression(ClassNode elementType, java.util.List<Expression> expressions)
public void addExpression(Expression expression)
public java.util.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 java.util.List<Expression> getSizeExpression()
public java.lang.String toString()
toString
in class java.lang.Object