gw.lang.parser.ExternalSymbolMapForMap Maven / Gradle / Ivy
/*
* 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;
}
}