Interface CodeGenerator<T>

  • Type Parameters:
    T - the type of object to generate code for
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CodeGenerator<T>
    Code generator for nested structures.
    Author:
    harald
    • Method Detail

      • generate

        java.lang.String generate​(T t)
                           throws org.wurbelizer.wurbel.WurbelException
        Generates code.
        Parameters:
        t - the object to generate code for
        Returns:
        the generated code
        Throws:
        org.wurbelizer.wurbel.WurbelException - if code generation failed