public class VilEcoreModelQuery extends AbstractEcoreModelQuery<de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit,ILanguageElement>
| Modifier and Type | Field and Description |
|---|---|
private VilEcoreModelFinder |
finder |
| Constructor and Description |
|---|
VilEcoreModelQuery() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.ecore.EObject |
getEcoreElement(CommonXtextEditor<?,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit> editor,
ILanguageElement declaration)
Returns the
EObject of the parse tree of the given editor's resource that matches the element
described by the given ModelElementDescription. |
protected de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit |
getLanguageUnit(org.eclipse.xtext.resource.XtextResource resource)
Returns the
LanguageUnit in the given resource (VTL-file). |
java.lang.String |
getName(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
Returns the name of the project.
|
de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit |
getProject(org.eclipse.xtext.nodemodel.ICompositeNode rootNode)
Returns the "project" of the Ecore-model represented by the given root node.
|
findCompound, findTypedef, findVariableDeclarationgetRootNode, getXtextResource, notEmpty, notEmpty, notEmptyprivate VilEcoreModelFinder finder
public java.lang.String getName(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
IEcoreModelQueryproject - the projectprojectpublic de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getProject(org.eclipse.xtext.nodemodel.ICompositeNode rootNode)
IEcoreModelQueryrootNode - the ICompositeNode which is the root of the Ecore-model from which the
"project" should be retrievednull if the
given root node is null, or there is no "project" in that filepublic org.eclipse.emf.ecore.EObject getEcoreElement(CommonXtextEditor<?,de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit> editor, ILanguageElement declaration)
IEcoreModelQueryEObject of the parse tree of the given editor's resource that matches the element
described by the given ModelElementDescription.
The search for this object will be performed in the Ecore-model of the given editor's resource only. This
requires that it is ensured that the given editor displays a file which includes the desired element.editor - the XtextEditor which displays the file in which the desired element should
be founddeclaration - the ModelElementDescription that describes the model element that should
be found in the parse tree of the given editor's resourceEObject that matches the element described by the given ModelElementDescription. May
return null if the element could not be foundprotected de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getLanguageUnit(org.eclipse.xtext.resource.XtextResource resource)
LanguageUnit in the given resource (VTL-file).resource - the XtextResource from which the LanguageUnit should be retrievedLanguageUnit in the given resource. May return null if the
given resource is null, cannot be parsed, or there is no LanguageUnit in that fileCopyright © 2009 - 2018 SSE. All Rights Reserved.