Class XtendXtext2EcorePostProcessor
- java.lang.Object
-
- org.eclipse.xtext.xtext.ecoreInference.XtendXtext2EcorePostProcessor
-
- All Implemented Interfaces:
IXtext2EcorePostProcessor
@Deprecated(forRemoval=true) public class XtendXtext2EcorePostProcessor extends java.lang.Object implements IXtext2EcorePostProcessor
Deprecated, for removal: This API element is subject to removal in a future version.This class depends on Xpand/Xtend(1) which is dead as a mouse. So don't use this post processor. Switch to a manually maintained metamodel instead.Xtend strategy for interfaceIXtext2EcorePostProcessor
which delegates the actual post-processing behavior to anXtend
based implementation.
-
-
Constructor Summary
Constructors Constructor Description XtendXtext2EcorePostProcessor()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
clearCachedXtendFile()
Deprecated, for removal: This API element is subject to removal in a future version.Sets cached Xtend file to null so it can be reloaded inloadXtendFile(GeneratedMetamodel)
protected void
fireXtendFileLoaded()
Deprecated, for removal: This API element is subject to removal in a future version.notify subclasses that the xtend file was successfully loadedprotected org.eclipse.xtend.expression.ExecutionContext
getExecutionContext(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.String
getExtensionName(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.protected org.eclipse.emf.mwe.core.resources.ResourceLoader
getResourceLoader(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.protected org.eclipse.emf.common.util.URI
getXtendFileLocation(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.protected org.eclipse.xtend.expression.Resource
loadXtendFile(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.Expects an Xtend file namedMyDsl
PostProcessor.ext with an extension with signature process(xtext::GeneratedMetamodel) in the same folder as the grammar file.void
process(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.Process the given metatmodel (e.g.
-
-
-
Method Detail
-
process
public void process(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IXtext2EcorePostProcessor
Process the given metatmodel (e.g. set default values, make references bi-directional, ...)- Specified by:
process
in interfaceIXtext2EcorePostProcessor
- Parameters:
metamodel
- the metatmodel to augment
-
getResourceLoader
protected org.eclipse.emf.mwe.core.resources.ResourceLoader getResourceLoader(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
metamodel
- the metamodel to augment- Returns:
- the resource loader used to load resources during the xtend processing
-
getExecutionContext
protected org.eclipse.xtend.expression.ExecutionContext getExecutionContext(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
metamodel
- the metamodel to augment- Returns:
- the executionContext used to perform the xtend processing
-
loadXtendFile
protected org.eclipse.xtend.expression.Resource loadXtendFile(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.Expects an Xtend file namedMyDsl
PostProcessor.ext with an extension with signature process(xtext::GeneratedMetamodel) in the same folder as the grammar file.- Parameters:
metamodel
- the metamodel to augment- Returns:
- the xtendFile to execute
-
fireXtendFileLoaded
protected void fireXtendFileLoaded()
Deprecated, for removal: This API element is subject to removal in a future version.notify subclasses that the xtend file was successfully loaded
-
clearCachedXtendFile
protected final void clearCachedXtendFile()
Deprecated, for removal: This API element is subject to removal in a future version.Sets cached Xtend file to null so it can be reloaded inloadXtendFile(GeneratedMetamodel)
-
getExtensionName
protected java.lang.String getExtensionName(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getXtendFileLocation
protected org.eclipse.emf.common.util.URI getXtendFileLocation(GeneratedMetamodel metamodel)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-