public final class GeneratorJavaFile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeneratorJavaFile.FileKind |
Constructor and Description |
---|
GeneratorJavaFile(Collection<? extends Type> types)
Creates instance of this class with the set of
types for which the JAVA code is generated. |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Table<GeneratorJavaFile.FileKind,String,Supplier<String>> |
generateFileContent(boolean ignoreDuplicates) |
static File |
packageToDirectory(File parentDirectory,
String packageName)
Creates the package directory path as concatenation of
parentDirectory and parsed
packageName . |
public GeneratorJavaFile(Collection<? extends Type> types)
types
for which the JAVA code is generated. Generator
instantiated this way uses the default build context, e.g. it will re-generate any and all files. The instances
of concrete JAVA code generator are created.types
- set of types for which JAVA code should be generatedpublic com.google.common.collect.Table<GeneratorJavaFile.FileKind,String,Supplier<String>> generateFileContent(boolean ignoreDuplicates)
public static File packageToDirectory(File parentDirectory, String packageName)
parentDirectory
and parsed
packageName
. The parsing of packageName
is realized as replacement of the package name
dots with the file system separator.parentDirectory
- File
object with reference to parent directorypackageName
- string with the name of the packageFile
object which refers to the new directory for package packageName
Copyright © 2019 OpenDaylight. All rights reserved.