@Override
	public Optional<String> transform(Generator gen, File model) {
        requireNonNulls(gen, model);
        
		final DependencyManager mgr = gen.getDependencyMgr();
        mgr.clearDependencies();
        
        final String pack = fileToClassName(model.getName())
            .flatMap(Formatting::packageName)
            .orElse("");
        
        mgr.setCurrentPackage(pack);

		final Optional<String> view = Optional.of(
			renderLicenseTerm(gen, model) +
			renderJavadoc(gen, model) +
			renderPackage(model) +
            renderImports(gen, model) +
            renderClasses(gen, model)
		);
		
		mgr.unsetCurrentPackage(pack);
		
		return view;
	}
Transforms from a {@link File} to java code.

@author Emil Forslund
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/view/FileView.java