@Override
	protected String renderSupertype(Generator gen, Class model) {
        requireNonNull(gen);
        requireNonNull(model);

        return model.getSupertype().map(supertype -> {
			final StringBuilder result = new StringBuilder();

			if (!model.getInterfaces().isEmpty()) {
				result.append(Formatting.nl());
			}

			return result.append(EXTENDS_STRING)
				.append(gen.on(supertype).orElse(""))
				.append(" ")
				.toString();
		}).orElse("");
	}
Transforms from a {@link Class} to java code.

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