CodeGenerationAction

public abstract class CodeGenerationAction

Abstract base for code generation actions.

Constructors

Link copied to clipboard
protected void CodeGenerationAction(Project project, Supplier<FileSet> files, Supplier<String> targetDirPath, Supplier<String> protoSrcDirPath)
Creates a new instance.

Functions

Link copied to clipboard
protected abstract Indent getIndent(Project project)
Obtains indentation configuration from the project.
Link copied to clipboard
protected final Indent indent()
Obtains indentation to be used for code generation.
Link copied to clipboard
protected final Project project()
Obtains the project for which the code is generated.
Link copied to clipboard
protected final Supplier<FileSet> protoFiles()
Obtains the Protobuf files to be processed.
Link copied to clipboard
protected final File protoSrcDir()
Obtains directory with source proto files.
Link copied to clipboard
protected final File targetDir()
Obtains directory under which the generated source will be placed.