Interface StubGenerator
- All Superinterfaces:
Generator
- All Known Implementing Classes:
ControllerGenerator,MapperGenerator,RepositoryGenerator,ServiceGenerator
Specialized generator for editable/non-editable stubs.
-
Method Summary
Modifier and TypeMethodDescriptioncom.squareup.javapoet.JavaFilebuild(ModelDescriptor modelDescriptor, WriteContext ctx) Build the JavaFile representing the stub.default List<com.squareup.javapoet.JavaFile> generate(ModelDescriptor modelDescriptor, WriteContext ctx) Generates the JavaFile for the given model descriptor.default voidwrite(ModelDescriptor modelDescriptor, WriteContext ctx) Writes the generated stub files to the context.Methods inherited from interface nl.datasteel.crudcraft.codegen.writer.Generator
order, requiresCrudEntity
-
Method Details
-
build
Build the JavaFile representing the stub. -
generate
default List<com.squareup.javapoet.JavaFile> generate(ModelDescriptor modelDescriptor, WriteContext ctx) Generates the JavaFile for the given model descriptor. This method is called by the write method to produce the files. -
write
Writes the generated stub files to the context. Editable stubs are written just like non-editable ones; a subsequent tooling step will decide whether to keep or copy them into the user's source tree.
-