Package org.eclipse.xtext.generator
Class AbstractGenerator
- java.lang.Object
-
- org.eclipse.xtext.generator.AbstractGenerator
-
- All Implemented Interfaces:
IGenerator2
public abstract class AbstractGenerator extends java.lang.Object implements IGenerator2
- Since:
- 2.9
-
-
Constructor Summary
Constructors Constructor Description AbstractGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
Release any data that is no longer necessary after the generator ran.void
beforeGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
Before the generation is triggered, the resource or the entire resource set may be prepared such that no modification will happen whileIGenerator2.doGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
is executed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.generator.IGenerator2
doGenerate
-
-
-
-
Method Detail
-
beforeGenerate
public void beforeGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
Description copied from interface:IGenerator2
Before the generation is triggered, the resource or the entire resource set may be prepared such that no modification will happen whileIGenerator2.doGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
is executed.- Specified by:
beforeGenerate
in interfaceIGenerator2
-
afterGenerate
public void afterGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
Description copied from interface:IGenerator2
Release any data that is no longer necessary after the generator ran. This is guaranteed to be called ifIGenerator2.beforeGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
was called. It may be called several times. It may be called even ifIGenerator2.beforeGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
was not called.- Specified by:
afterGenerate
in interfaceIGenerator2
-
-