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

gw.lang.ir.statement.IRThrowStatement Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.lang.ir.statement;

import gw.lang.ir.IRStatement;
import gw.lang.ir.IRExpression;
import gw.lang.UnstableAPI;

@UnstableAPI
public class IRThrowStatement extends IRStatement implements IRTerminalStatement {
  private IRExpression _exception;

  public IRThrowStatement(IRExpression exception) {
    _exception = exception;
    exception.setParent( this );
  }

  public IRExpression getException() {
    return _exception;
  }

  @Override
  public IRTerminalStatement getLeastSignificantTerminalStatement() {
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy