Interface IResolutionScope

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the (unqualified) name of the scope.
        Returns:
        the unqualified name of the scope
      • getParent

        IModelElement getParent()
        Returns the parent model element.
        Returns:
        the parent model element (may be null)
      • getElement

        ContainableModelElement getElement​(int index)
        Returns a contained model element specified by index.
        Parameters:
        index - a 0-based index specifying the operation to be returned
        Returns:
        the contained element
        Throws:
        java.lang.IndexOutOfBoundsException - if index<0 || index>=getElementCount()
      • getElement

        ContainableModelElement getElement​(java.lang.String name)
        Returns a contained model element specified by its name.
        Parameters:
        name - the qualified or unqualified name to search for
        Returns:
        the related element or null if no such element is known
      • getElementCount

        int getElementCount()
        Returns the number of contained elements.
        Returns:
        the number of contained elements
      • getImportsCount

        int getImportsCount()
        Returns the number of imports.
        Returns:
        the number of imports
      • getImport

        ProjectImport getImport​(int index)
        Returns the project import specified by index.
        Parameters:
        index - a 0-based index specifying the import to be returned
        Returns:
        the project import
        Throws:
        java.lang.IndexOutOfBoundsException - if index<0 || index>=getImportsCount()
      • hasInterfaces

        boolean hasInterfaces()
        Returns whether this scope has interfaces.
        Returns:
        true if it has interfaces, false else
      • isInterface

        boolean isInterface()
        Returns whether this scope is an interfaces.
        Returns:
        true if it is an interface, false else