use of com.twosigma.beakerx.kernel.Imports in project beakerx by twosigma.
the class BaseEvaluator method initImports.
private void initImports(Map<String, Object> params) {
Collection<String> listOfImports = (Collection<String>) params.get(DefaultJVMVariables.IMPORTS);
List<ImportPath> importPaths = new ArrayList<>();
if (listOfImports != null) {
for (String line : listOfImports) {
if (!line.trim().isEmpty()) {
importPaths.add(new ImportPath(line));
}
}
if (this.imports != null) {
importPaths.addAll(this.imports.getImportPaths());
}
}
this.imports = new Imports(importPaths);
}
Aggregations