public class VilEcoreModelFinder
extends java.lang.Object
| Constructor and Description |
|---|
VilEcoreModelFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcLevel(ILanguageElement elt,
java.lang.Class<?> stopCls)
Determines the nesting level of
element until stopCls. |
protected org.eclipse.emf.ecore.EObject |
findInRuleElt(de.uni_hildesheim.sse.vilBuildLanguage.RuleElement elt,
ILanguageElement declaration,
int level)
Tries finding
declaration in elt. |
protected org.eclipse.emf.ecore.EObject |
findInRuleElts(java.util.List<? extends de.uni_hildesheim.sse.vilBuildLanguage.RuleElement> elts,
ILanguageElement declaration,
int level)
Tries finding
declaration in the defs of elts. |
protected org.eclipse.emf.ecore.EObject |
findInRuleElts(de.uni_hildesheim.sse.vilBuildLanguage.RuleElementBlock block,
ILanguageElement declaration,
int level)
Tries finding
declaration in the defs of block. |
org.eclipse.emf.ecore.EObject |
getEcoreElement(org.eclipse.emf.ecore.EObject contentElement,
ILanguageElement declaration)
Returns the ECore object for
declaration defined in contentElement. |
public org.eclipse.emf.ecore.EObject getEcoreElement(org.eclipse.emf.ecore.EObject contentElement,
ILanguageElement declaration)
declaration defined in contentElement.contentElement - the content element to search withindeclaration - the declaration to searchdeclaration, may be null if not foundprotected int calcLevel(ILanguageElement elt, java.lang.Class<?> stopCls)
element until stopCls.elt - the element to determine the nesting forstopCls - the stop class or run until the topmost parentprotected org.eclipse.emf.ecore.EObject findInRuleElts(de.uni_hildesheim.sse.vilBuildLanguage.RuleElementBlock block,
ILanguageElement declaration,
int level)
declaration in the defs of block.block - the block to searchdeclaration - the declaration to search forlevel - the actual nesting level starting with the one of element, if greater 0 recurse to the
next levelsprotected org.eclipse.emf.ecore.EObject findInRuleElts(java.util.List<? extends de.uni_hildesheim.sse.vilBuildLanguage.RuleElement> elts,
ILanguageElement declaration,
int level)
declaration in the defs of elts.elts - the elements to searchdeclaration - the declaration to search forlevel - the actual nesting level starting with the one of element, if greater 0 recurse to the
next levelsprotected org.eclipse.emf.ecore.EObject findInRuleElt(de.uni_hildesheim.sse.vilBuildLanguage.RuleElement elt,
ILanguageElement declaration,
int level)
declaration in elt.elt - the element to searchdeclaration - the declaration to search forlevel - the actual nesting level starting with the one of element, if greater 0 recurse to the
next levelsCopyright © 2009 - 2018 SSE. All Rights Reserved.