All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.ir.expression.IRNewMultiDimensionalArrayExpression Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * 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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy