Class AbstractEcoreModelQuery<P extends org.eclipse.emf.ecore.EObject,​R>

  • Type Parameters:
    P - the type of the "project", the top-most semantic language unit
    R - IModelQuery search result type
    All Implemented Interfaces:
    IEcoreModelQuery<P,​R>
    Direct Known Subclasses:
    VilEcoreModelQuery, VtlEcoreModelQuery

    public abstract class AbstractEcoreModelQuery<P extends org.eclipse.emf.ecore.EObject,​R>
    extends AbstractEcoreModelQuery<P,​R>
    Some common functionality for the common VIL expressions language.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • AbstractEcoreModelQuery

        public AbstractEcoreModelQuery()
    • Method Detail

      • findVariableDeclaration

        public static org.eclipse.emf.ecore.EObject findVariableDeclaration​(java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.VariableDeclaration> defs,
                                                                            VariableDeclaration element)
        Tries finding element in defs.
        Parameters:
        defs - the variable declarations to search within
        element - the element to search for
        Returns:
        the found variable declaration or null
      • findTypedef

        public static org.eclipse.emf.ecore.EObject findTypedef​(java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.TypeDef> defs,
                                                                Typedef element)
        Tries finding element in defs.
        Parameters:
        defs - the type defs to search within
        element - the element to search for
        Returns:
        the found type def or null
      • findCompound

        public static org.eclipse.emf.ecore.EObject findCompound​(java.util.List<de.uni_hildesheim.sse.vil.expressions.expressionDsl.Compound> defs,
                                                                 Compound element)
        Tries finding element in defs.
        Parameters:
        defs - the type defs to search within
        element - the element to search for
        Returns:
        the found type def or null