Package org.eclipse.xtext.generator
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 theIFileSystemAccess
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 anIGenerator2
to support code generation in parallel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IGenerator.NullGenerator
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
doGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess fsa)
-
-
-
Method Detail
-
doGenerate
void doGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess fsa)
- Parameters:
input
- the input for which to generate resourcesfsa
- file system access to be used to generate files
-
-