Package de.spraener.nxtgen.cartridges
Class GeneratorWrapper
java.lang.Object
de.spraener.nxtgen.cartridges.GeneratorWrapper
- All Implemented Interfaces:
CodeGenerator
- Direct Known Subclasses:
BlueprintGeneratorWrapper,MustacheGeneratorWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Methodprotected Class<? extends CodeGenerator>protected GeneratorSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<? extends ModelElement>protected static MethodreadCgMethod(Class<?> g) protected GeneratorSpecreadGeneratorSpec(Class<?> g, Method cgMethod) resolve(ModelElement element, String templateName) Apply the requested Template to the model Element.
-
Field Details
-
generatorSpec
-
generatorClass
-
cgMethod
-
-
Constructor Details
-
GeneratorWrapper
-
GeneratorWrapper
-
-
Method Details
-
readGeneratorSpec
-
readCgMethod
-
operatesOn
-
requiredStereotype
-
matches
-
resolve
Description copied from interface:CodeGeneratorApply the requested Template to the model Element.- Specified by:
resolvein interfaceCodeGenerator- 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.
-