com.github.themrmilchmann.kraton / GeneratorTarget

GeneratorTarget

abstract class GeneratorTarget (source)

GeneratorTarget

A GeneratorTarget defines a file template for the generator to process. Usually end user's shouldn't need to call this class directly but use functionality of their respective language module instead.

Output location

The Generator is built to assume that the project is using a directory layout that is similar to Kraton's. However, this behaviour is fully customizable and may be altered.

The path of the file is constructed as follows: srcFolder/srcSet/language/packageName/fileName.appendix

Constructors

<init>

GeneratorTarget(fileName: String, language: String, packageName: String, srcFolder: String, srcSet: String, appendix: String = language)

Creates a new GeneratorTarget.

Functions

printTarget

abstract fun PrintWriter.printTarget(): Unit

Prints this GeneratorTarget.