Class TransformerClassGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
no.sikt.graphitron.generators.mapping.TransformerClassGenerator
- All Implemented Interfaces:
ClassGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<no.sikt.graphitron.javapoet.TypeSpec>Generate the classes and return the list of TypeSpecs.no.sikt.graphitron.javapoet.TypeSpec.BuildergetSpec(String className, List<? extends MethodGenerator> generators) Methods inherited from class no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
generateAllAsMap, generateAllToDirectory, getGeneratedClassName, getSpec, setDependencies, writeToFile, writeToFile, writeToString
-
Field Details
-
FILE_NAME_SUFFIX
- See Also:
-
DEFAULT_SAVE_DIRECTORY_NAME
- See Also:
-
-
Constructor Details
-
TransformerClassGenerator
-
-
Method Details
-
getSpec
public no.sikt.graphitron.javapoet.TypeSpec.Builder getSpec(String className, List<? extends MethodGenerator> generators) - Specified by:
getSpecin interfaceClassGenerator- Overrides:
getSpecin classAbstractClassGenerator- Parameters:
className- The name of the class.generators- List of method generators that this class should use to generate its methods.- Returns:
- A completed
TypeSpec.Builderfor this class, where all methods have already been added.
-
generateAll
Description copied from interface:ClassGeneratorGenerate the classes and return the list of TypeSpecs. -
getDefaultSaveDirectoryName
- Returns:
- The final directory path within the package where the classes are ultimately saved.
-
getFileNameSuffix
- Returns:
- The suffix that is to be added to the end of file names generated by this class.
-