gw.lang.ir.expression.IRNewMultiDimensionalArrayExpression Maven / Gradle / Ivy
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.ir.expression;
import gw.lang.ir.IRExpression;
import gw.lang.ir.IRType;
import gw.lang.UnstableAPI;
import java.util.ArrayList;
import java.util.List;
@UnstableAPI
public class IRNewMultiDimensionalArrayExpression extends IRExpression {
private IRType _resultType;
private List _sizeExpressions;
public IRNewMultiDimensionalArrayExpression(IRType resultType, List sizeExpressions) {
_resultType = resultType;
_sizeExpressions = new ArrayList(sizeExpressions);
for (IRExpression arg : sizeExpressions) {
arg.setParent( this );
}
}
public IRType getResultType() {
return _resultType;
}
public List getSizeExpressions() {
return _sizeExpressions;
}
@Override
public IRType getType() {
return _resultType;
}
}