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

gw.lang.ir.expression.IRNewExpression 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.List;

@UnstableAPI
public class IRNewExpression extends IRExpression {
  private IRType _ownersType;
  private List _parameterTypes;
  private List _args;

  public IRNewExpression(IRType ownersType, List parameterTypes, List args) {
    _ownersType = ownersType;
    _parameterTypes = maybeEraseStructuralTypes( ownersType, parameterTypes );
    _args = args;

    for (IRExpression arg : args) {
      arg.setParent( this );
    }
  }

  public IRType getOwnersType() {
    return _ownersType;
  }

  public List getParameterTypes() {
    return _parameterTypes;
  }

  public List getArgs() {
    return _args;
  }

  @Override
  public IRType getType() {
    return _ownersType;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy