public String getVersion() {
return VERSION;
}
private VariableResolver createVariableResolver() {
VariableResolver resolver = new VariableResolver();
for (String pkg : config.getImportPackages()) {
resolver.addImportPackage(pkg);
}
for (String klassName : config.getImportClasses()) {
resolver.addImportClass(klassName);
}
for (String method : config.getImportMethods()) {
resolver.addMethodClass(method);
}
for (String function : config.getImportFunctions()) {
resolver.addFunctionClass(function);
}
for (String tag : config.getImportTags()) {
resolver.addTagClass(tag);
}
for (String variable : config.getImportVariables()) {
int pos = variable.lastIndexOf(" ");
String defination = variable.substring(0, pos);
String id = variable.substring(pos + 1);
resolver.addGlobalVariable(defination, id);
}
if (config.isImportAutoscan()) {
log.info("Starting to autoscan the JetMethods, JetFunctions, JetTags implements...");
autoScanClassImplements(resolver);