public class JsonGeneratorFactory extends Object implements GeneratorFactory
| Constructor and Description |
|---|
JsonGeneratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
Generator |
createGenerator(FileManager manager,
GeneratorOptions generatorOptions,
Collection<String> options)
Create the actual generator.
|
String |
generatorDescription()
A general description of the generator.
|
String |
generatorName()
The name of the generator.
|
void |
printGeneratorOptionsHelp(PrintStream out)
Print a listing of the generator options in a CLI like
point list.
|
public String generatorName()
GeneratorFactory--gen generator CLI argument.generatorName in interface GeneratorFactorypublic String generatorDescription()
GeneratorFactorygeneratorDescription in interface GeneratorFactorypublic void printGeneratorOptionsHelp(PrintStream out)
GeneratorFactory- first : The first option, does this. - second : The second option, does that.
printGeneratorOptionsHelp in interface GeneratorFactoryout - The print stream to write to.public Generator createGenerator(FileManager manager, GeneratorOptions generatorOptions, Collection<String> options)
GeneratorFactorycreateGenerator in interface GeneratorFactorymanager - The file manager to use for creating files.generatorOptions - The general generator options.options - List of string options to create generator-specific options.Copyright © 2015–2018 morimekta.net. All rights reserved.