public abstract class AbstractGenerator extends java.lang.Object implements IGenerator2
Constructor and Description |
---|
AbstractGenerator() |
Modifier and Type | Method and 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 while
IGenerator2.doGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
is executed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doGenerate
public void beforeGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
IGenerator2
IGenerator2.doGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
is executed.beforeGenerate
in interface IGenerator2
public void afterGenerate(org.eclipse.emf.ecore.resource.Resource input, IFileSystemAccess2 fsa, IGeneratorContext context)
IGenerator2
IGenerator2.beforeGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
was called.
It may be called several times. It may be called even if IGenerator2.beforeGenerate(Resource, IFileSystemAccess2, IGeneratorContext)
was not called.afterGenerate
in interface IGenerator2