Class ExceptionStrategyConfigurationGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractClassGenerator
no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator<SchemaDefinition>
no.sikt.graphitron.generators.exception.ExceptionStrategyConfigurationGenerator
- All Implemented Interfaces:
ClassGenerator
public class ExceptionStrategyConfigurationGenerator
extends AbstractSchemaClassGenerator<SchemaDefinition>
-
Field Summary
Fields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaClassGenerator
processedSchema -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionno.sikt.graphitron.javapoet.TypeSpecgenerate(SchemaDefinition schemaDefinition) List<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
-
Constructor Details
-
ExceptionStrategyConfigurationGenerator
-
-
Method Details
-
generate
- Specified by:
generatein classAbstractSchemaClassGenerator<SchemaDefinition>- Parameters:
schemaDefinition- AGenerationTargetobject representing a source from which a class should be generated.- Returns:
- A complete class in the form of a javapoet
TypeSpec.
-
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.
-
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.
-