Hop.CodeGenerator Class
Item Index
Methods
- Hop.CodeGenerator.describe static
- Hop.CodeGenerator.generate static
- Hop.CodeGenerator.generateTest static
- Hop.CodeGenerator.list static
- Hop.CodeGenerator.toOutputFile static
Methods
Hop.CodeGenerator.describe
()
static
Describe the current generator, aka get the generator.json
Hop.CodeGenerator.generate
()
static
This will generate the files utilized for the stub api.
Hop.CodeGenerator.generateTest
()
static
This will generate the files utilized for unit test for this generator.
- The property 'testTemplate' in generator.json will be used as the input file for unit tests.
- The properties Objects, TestCases, and Models will be passed into the context of the script
- The property 'output' in options will determine what the output file is called.
Hop.CodeGenerator.list
()
static
Lists the various types of generators that exist
Hop.CodeGenerator.toOutputFile
()
static
For generators that use a directory structure this will compute the output paths
- The translatePath property in generator.json can be used to override this function
