this.adt = adt;
this.impl = impl;
this.prefix = params.getPrefix();
this.packagePrefix = "";
if (params instanceof JavaGenerationParameters) {
JavaGenerationParameters javaParams = (JavaGenerationParameters) params;
if (javaParams.getPackageName() != null) {
this.packagePrefix += javaParams.getPackageName() + ".";
}
this.packagePrefix += javaParams.getApiExtName(module)
.toLowerCase()
+ ".";
this.packagePrefix += TypeGenerator.packageName() + ".";
setDirectory(buildDirectoryName(javaParams.getOutputDirectory(),
javaParams.getPackageName()));
} else {
setDirectory(params.getOutputDirectory());
}
}