Interface IGenerator

  • All Known Implementing Classes:
    GeneratorDelegate, IGenerator.NullGenerator

    public interface IGenerator
    Interface for sequential code generators. Implementors have to provide the logic that processes a single resource. I/O is abstracted with the IFileSystemAccess which allows to provide support for in-memory code generation and UI specific implementations, e.g. based on the Eclipse resource model or the IntelliJ virtual file system. Clients may choose to implement and bind an IGenerator2 to support code generation in parallel.
    • Method Detail

      • doGenerate

        void doGenerate​(org.eclipse.emf.ecore.resource.Resource input,
                        IFileSystemAccess fsa)
        Parameters:
        input - the input for which to generate resources
        fsa - file system access to be used to generate files