Package org.eclipse.xtext.generator
Interface IGenerator
-
- All Known Implementing Classes:
GeneratorDelegate,IGenerator.NullGenerator
public interface IGeneratorInterface for sequential code generators. Implementors have to provide the logic that processes a single resource. I/O is abstracted with theIFileSystemAccesswhich 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 anIGenerator2to support code generation in parallel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIGenerator.NullGenerator
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoGenerate(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
-
-