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

gw.lang.ir.statement.IRCatchClause 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.IRSymbol;
import gw.lang.ir.IRStatement;
import gw.lang.UnstableAPI;

@UnstableAPI
public class IRCatchClause {
  private IRSymbol _identifier;
  private IRStatement _body;

  public IRCatchClause(IRSymbol identifier, IRStatement body) {
    _identifier = identifier;
    _body = body;
    // Note that the body of the catch clause gets its parent set to the enclosing
    // IRTryCatchFinallyStatement, rather than the catch clause, which isn't itself really a statement
  }

  public IRSymbol getIdentifier() {
    return _identifier;
  }

  public IRStatement getBody() {
    return _body;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy