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

gw.lang.parser.ExternalSymbolMapForMap Maven / Gradle / Ivy

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

package gw.lang.parser;

import java.util.HashMap;

public class ExternalSymbolMapForMap extends ExternalSymbolMapBase {

  private HashMap _externalSymbols;

  public ExternalSymbolMapForMap( HashMap externalSymbols) {
    this(externalSymbols, false);
  }

  public ExternalSymbolMapForMap( HashMap externalSymbols, boolean assumeSymbolsRequireExternalSymbolMapArgument) {
    super(assumeSymbolsRequireExternalSymbolMapArgument);
    _externalSymbols = externalSymbols;
  }

  public ISymbol getSymbol(String name) {
    return _externalSymbols.get( name );
  }

  public boolean isExternalSymbol(String name) {
    return _externalSymbols.containsKey( name );
  }

  public HashMap getMap() {
    return _externalSymbols;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy