public class JavaForger extends Object
| Constructor and Description |
|---|
JavaForger() |
| Modifier and Type | Method and Description |
|---|---|
static CodeSnipit |
execute(JavaForgerConfiguration config)
Executes the given
JavaForgerConfiguration that contains the template. |
static CodeSnipit |
execute(JavaForgerConfiguration config,
String inputClass)
Executes the given
JavaForgerConfiguration that contains the template. |
static CodeSnipit |
execute(JavaForgerConfiguration config,
String inputClass,
String outputClass)
Executes the given
JavaForgerConfiguration that contains the template. |
public static CodeSnipit execute(JavaForgerConfiguration config)
JavaForgerConfiguration that contains the template. The parameters used to fill in the template will also come from the
configuration.config - The Configuration containing the template and settings for how to process the input class to generate code.CodeSnipit containing the generated code.public static CodeSnipit execute(JavaForgerConfiguration config, String inputClass)
JavaForgerConfiguration that contains the template. The input class is used to fill in the given template with fields, methods
etc. derived from it.config - The Configuration containing the template and settings for how to process the input class to generate code.inputClass - The full path to the class to be used as input for the template.CodeSnipit containing the generated code.public static CodeSnipit execute(JavaForgerConfiguration config, String inputClass, String outputClass)
JavaForgerConfiguration that contains the template. The input class is used to fill in the given template with fields, methods
etc. derived from it. The generated code is merged into the output class.config - The Configuration containing the template and settings for how to process the input class to generate code.inputClass - The full path to the class to be used as input for the template.outputClass - The class to be used to merge the generated code with.CodeSnipit containing the generated code.Copyright © 2019. All rights reserved.