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

gw.lang.ir.builder.IRTempSymbolBuilder Maven / Gradle / Ivy

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

package gw.lang.ir.builder;

import gw.lang.ir.IRType;
import gw.lang.ir.IRSymbol;
import gw.lang.UnstableAPI;

@UnstableAPI
public class IRTempSymbolBuilder extends IRSymbolBuilder {

  private IRType _type;
  private IRSymbol _symbol;

  public IRTempSymbolBuilder(IRType type) {
    _type = type;
  }

  @Override
  public IRSymbol build(IRBuilderContext context) {
    if (_symbol == null) {
      _symbol = context.tempSymbol(_type);
    }
    return _symbol;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy