@Override
    public Optional<String> transform(Generator gen, AnonymousValue model) {
        return Optional.of("new " + gen.on(model.getValue()).orElseThrow(NoSuchElementException::new) +
            gen.onEach(model.getTypeParameters()).collect(joinIfNotEmpty(", ", "<", ">")) +
            gen.onEach(model.getValues()).collect(joining(", ", "(", ")")) + " " + block(
                separate(
                    renderFields(gen, model),
                    renderInitalizers(gen, model),
                    renderMethods(gen, model),
                    renderClasses(gen, model)
                )
            )
        );
    }
Transforms from an {@link AnonymousValue} to java code.

@author Emil Forslund
@since  2.4.6
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/java/view/value/AnonymousValueView.java