|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.codegen.ecore.generator.Generator org.eclipse.emf.ecore.xcore.generator.XcoreGeneratorImpl
public class XcoreGeneratorImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.codegen.ecore.generator.Generator |
---|
Generator.Options |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.codegen.ecore.generator.Generator |
---|
adapterFactoryDescriptorRegistry, badFacadeHelperClasses, initializeNeeded, input, jControlModel, options, packageIDToAdapterFactories |
Constructor Summary | |
---|---|
XcoreGeneratorImpl()
|
Method Summary | |
---|---|
protected java.util.Collection<GeneratorAdapterFactory> |
getAdapterFactories(java.lang.Object object)
Returns the generator adapter factories for a given object. |
java.lang.String |
getModelDirectory()
|
void |
setFileSystemAccess(org.eclipse.xtext.generator.IFileSystemAccess fsa)
|
void |
setInput(java.lang.Object input)
Sets the model-level input object, and invokes initialize(Object)
on any of its adapter factories. |
void |
setModelDirectory(java.lang.String modelDirectory)
|
Methods inherited from class org.eclipse.emf.codegen.ecore.generator.Generator |
---|
canContinue, canGenerate, dispose, generate, generate, getAdapterFactoryDescriptorRegistry, getAdapters, getInput, getJControlModel, getOptions, getPackageID, initialize, requestInitialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XcoreGeneratorImpl()
Method Detail |
---|
public java.lang.String getModelDirectory()
public void setModelDirectory(java.lang.String modelDirectory)
public void setFileSystemAccess(org.eclipse.xtext.generator.IFileSystemAccess fsa)
public void setInput(java.lang.Object input)
Generator
initialize(Object)
on any of its adapter factories. This initialization will also be repeated in the next
Generator.generate(Object, Object, Monitor)
or Generator.generate(Object, Object, String, Monitor)
, when the full
tree of objects and adapters has been discovered.
setInput
in class Generator
Generator.getInput()
,
Generator.generate(Object, Object, Monitor)
,
Generator.generate(Object, Object, String, Monitor)
,
GeneratorAdapterFactory.initialize(Object)
protected java.util.Collection<GeneratorAdapterFactory> getAdapterFactories(java.lang.Object object)
Generator
registry
for the generator is used to obtain the descriptors
for the object's
package ID
, and those descriptors are used to create the adapter factories, which are
cached.
getAdapterFactories
in class Generator
Generator.getAdapterFactoryDescriptorRegistry()
,
Generator.getPackageID(Object)
,
GeneratorAdapterFactory.Descriptor
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |