private Address getAddressForSymbol(Program program, String input) {
		SymbolPath symbolPath = new SymbolPath(input);
		String symbolName = symbolPath.getName();
		SymbolPath parent = symbolPath.getParent();

		Namespace namespace = null;

		if (parent != null) {
			namespace = getParentNamespace(program, parent);
			if (namespace == null) {
				// there was a namespace specified, but not uniquely found, so can't resolve.
				return null;
			}
		}
		SymbolTable symbolTable = program.getSymbolTable();
		List<Symbol> symbols = symbolTable.getLabelOrFunctionSymbols(symbolName, namespace);
		if (symbols.size() == 1) {
			return symbols.get(0).getAddress();
		}
		return null;
	}
Sets the {@link AddressSpace} to be used to convert long values into addresses. 
@param space the address space to convert long values into addresses
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java