public class GeneratePrimitiveClasses extends Object
Code generation utility that generates set of classes from a template files. Templates are found in giraph-core/template/ folder. If you want to add new generation, look at the main function, and add a call to appropriate generate* function.
Templates are using freemarker template format, which given template file and map of String->Object replacements generates new file.
Main rules:${something}
gets replaced with value of map.get("something")
${obj.method}
gets replaced with value of map.get("obj").getMethod()
Modifier and Type | Class and Description |
---|---|
static class |
GeneratePrimitiveClasses.PrimitiveType |
Constructor and Description |
---|
GeneratePrimitiveClasses() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
defaultMap() |
static void |
main(String[] args) |
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.