@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
23 lines (20 loc) • 634 B
text/typescript
import Weaver from "./Weaver.js";
import WeaverDataStore from "./util/WeaverDataStore.js";
/**
* Contains configuration-related methods of the weaver.
*/
export default class WeaverOptions {
/**
* @returns DataStore with the data of the current weaver
*/
static getData() {
const weaverEngine = Weaver.getWeaverEngine();
return new WeaverDataStore(weaverEngine.getData().get(), weaverEngine.getStoreDefinition());
}
/**
* @returns {java.util.Set<String>} with the languages supported by the current weaver
*/
static getSupportedLanguages() {
return Weaver.getWeaverEngine().getLanguages();
}
}