|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xtext.ecoreInference.XtendXtext2EcorePostProcessor
public class XtendXtext2EcorePostProcessor
Xtend strategy for interface IXtext2EcorePostProcessor
which delegates the actual post-processing behavior to
an Xtend
based implementation.
Constructor Summary | |
---|---|
XtendXtext2EcorePostProcessor()
|
Method Summary | |
---|---|
protected void |
clearCachedXtendFile()
Sets cached Xtend file to null so it can be reloaded in loadXtendFile(GeneratedMetamodel) |
protected void |
fireXtendFileLoaded()
notify subclasses that the xtend file was successfully loaded |
protected org.eclipse.xtend.expression.ExecutionContext |
getExecutionContext(GeneratedMetamodel metamodel)
|
protected java.lang.String |
getExtensionName(GeneratedMetamodel metamodel)
|
protected org.eclipse.emf.mwe.core.resources.ResourceLoader |
getResourceLoader(GeneratedMetamodel metamodel)
|
protected org.eclipse.emf.common.util.URI |
getXtendFileLocation(GeneratedMetamodel metamodel)
|
protected org.eclipse.xtend.expression.Resource |
loadXtendFile(GeneratedMetamodel metamodel)
Expects an Xtend file named MyDsl PostProcessor.ext with an extension with signature
process(xtext::GeneratedMetamodel) in the same folder as the grammar file. |
void |
process(GeneratedMetamodel metamodel)
Process the given metatmodel (e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XtendXtext2EcorePostProcessor()
Method Detail |
---|
public void process(GeneratedMetamodel metamodel)
IXtext2EcorePostProcessor
process
in interface IXtext2EcorePostProcessor
metamodel
- the metatmodel to augmentprotected org.eclipse.emf.mwe.core.resources.ResourceLoader getResourceLoader(GeneratedMetamodel metamodel)
metamodel
- the metamodel to augment
protected org.eclipse.xtend.expression.ExecutionContext getExecutionContext(GeneratedMetamodel metamodel)
metamodel
- the metamodel to augment
protected org.eclipse.xtend.expression.Resource loadXtendFile(GeneratedMetamodel metamodel)
MyDsl
PostProcessor.ext with an extension with signature
process(xtext::GeneratedMetamodel) in the same folder as the grammar file.
metamodel
- the metamodel to augment
protected void fireXtendFileLoaded()
protected final void clearCachedXtendFile()
loadXtendFile(GeneratedMetamodel)
protected java.lang.String getExtensionName(GeneratedMetamodel metamodel)
protected org.eclipse.emf.common.util.URI getXtendFileLocation(GeneratedMetamodel metamodel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |