use of com.yahoo.config.codegen.JavaClassBuilder in project vespa by vespa-engine.
the class ConfigDefinition method generateClass.
public ConfigDefinitionClass generateClass() {
File tempDir = Files.createTempDir();
DefParser parser = new DefParser(name, new StringReader(StringUtilities.implode(defSchema, "\n")));
JavaClassBuilder builder = new JavaClassBuilder(parser.getTree(), parser.getNormalizedDefinition(), tempDir, null);
String className = builder.className();
return new ConfigDefinitionClass(className, builder.javaPackage(), builder.getConfigClass(className));
}
Aggregations