Package de.spraener.nxtgen.incubator
Class BlueprintGeneratorWrapper
java.lang.Object
de.spraener.nxtgen.cartridges.GeneratorWrapper
de.spraener.nxtgen.incubator.BlueprintGeneratorWrapper
- All Implemented Interfaces:
CodeGenerator
-
Field Summary
Fields inherited from class de.spraener.nxtgen.cartridges.GeneratorWrapper
cgMethod, generatorClass, generatorSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GeneratorSpecreadGeneratorSpec(Class<?> g, Method cgMethod) resolve(ModelElement element, String templateName) Apply the requested Template to the model Element.Methods inherited from class de.spraener.nxtgen.cartridges.GeneratorWrapper
matches, operatesOn, readCgMethod, requiredStereotype
-
Constructor Details
-
BlueprintGeneratorWrapper
-
BlueprintGeneratorWrapper
-
-
Method Details
-
readGeneratorSpec
- Overrides:
readGeneratorSpecin classGeneratorWrapper
-
resolve
Description copied from interface:CodeGeneratorApply the requested Template to the model Element.- Specified by:
resolvein interfaceCodeGenerator- Overrides:
resolvein classGeneratorWrapper- Parameters:
element- a instance of ModelElement to generate code fortemplateName- a Template to apply on the model element.- Returns:
- a not null instance of CodeBlock the can write the code.
-