Class Finder.ByScopeFinder

  • Enclosing class:
    Finder

    public static final class Finder.ByScopeFinder
    extends java.lang.Object
    Search for all elements in the given root element(s) and all(direct and indirect) children of root element(s)
    • Method Detail

      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(Element root)
        Create iterator for iterating content from a given root including it.
        Parameters:
        root - root elements
        Returns:
        elements iterator
      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(Project project)
        Create iterator for iterating content of given project including root models of project.
        Parameters:
        project - project
        Returns:
        elements iterator
      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(java.util.Collection<? extends Element> roots)
        Create iterator for iterating content from a given roots including them.
        Parameters:
        roots - root elements
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(Element root)
        Create iterator for iterating content from a given root including PresentationElements and root
        Parameters:
        root - root elements
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(Project project)
        Create iterator for iterating content of given Project including PresentationElements and project root models
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(java.util.Collection<? extends Element> roots)
        Create iterator for iterating content from a given root including PresentationElements and roots
        Parameters:
        roots - root elements
        Returns:
        elements iterator
      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(Element root,
                                                                 boolean includeRoot)
        Create iterator for iterating content from a given root.
        Parameters:
        root - root element
        includeRoot - include roots
        Returns:
        elements iterator
      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(Project project,
                                                                 boolean includeRoot)
        Create iterator for iterating content from a given root.
        Parameters:
        project - project
        includeRoot - include roots
        Returns:
        elements iterator
      • iterator

        public <T extends ElementCloseableIterator<T> iterator​(java.util.Collection<? extends Element> roots,
                                                                 boolean includeRoot)
        Create iterator for iterating content from a given root.
        Parameters:
        roots - root elements
        includeRoot - include roots
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(Element root,
                                                                                                  boolean includeRoot)
        Create iterator for iterating content from a given root including PresentationElements
        Parameters:
        root - root elements
        includeRoot - include roots
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(Project project,
                                                                                                  boolean includeRoot)
        Create iterator for iterating content of whole Project including PresentationElements
        Parameters:
        project - project
        includeRoot - include roots
        Returns:
        elements iterator
      • iteratorIncludingPresentationElements

        public <T extends BaseElementCloseableIterator<T> iteratorIncludingPresentationElements​(java.util.Collection<? extends Element> roots,
                                                                                                  boolean includeRoot)
        Create iterator for iterating content from a given root including PresentationElements
        Parameters:
        roots - root elements
        includeRoot - include roots
        Returns:
        elements iterator
      • find

        public <T extends Element> java.util.Collection<T> find​(Project project,
                                                                boolean includeRoot)
        Collects all elements from a given project.
        Parameters:
        project - project
        includeRoot - include project root models
        Returns:
        elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Element root,
                                                                boolean includeRoot)
        Collects all elements from a given root
        Parameters:
        root - root element
        includeRoot - include root into result
        Returns:
        elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots,
                                                                boolean includeRoot)
        Collects all elements from a given root
        Parameters:
        roots - root elements
        includeRoot - includes root into result
        Returns:
        elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Project project)
        Collects all elements from a given project. Project root models are included.
        Parameters:
        project - project
        Returns:
        elements
      • find

        public <T extends Element> java.util.Collection<T> find​(Element root)
        Collects all elements from a given root.Root element is included
        Parameters:
        root - root element
        Returns:
        elements
      • find

        public <T extends Element> java.util.Collection<T> find​(java.util.Collection<? extends Element> roots)
        Collects all elements from a given root. Root elements are included
        Parameters:
        roots - root elements
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(Project project)
        Collects all elements from a given project including PresentationElements. Project root models are included.
        Parameters:
        project - project
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(Element root)
        Collects all elements from a given root including PresentationElements. Root element is included.
        Parameters:
        root - root element
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(java.util.Collection<? extends Element> roots)
        Collects all elements from a given root including PresentationElements. Root elements are included.
        Parameters:
        roots - roots element
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(Project project,
                                                                                                 boolean includeRoot)
        Collects all elements from a given project including PresentationElements
        Parameters:
        project - project
        includeRoot - include project root models
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(Element root,
                                                                                                 boolean includeRoot)
        Collects all elements from a given root including PresentationElements
        Parameters:
        root - root element
        includeRoot - include project root models
        Returns:
        elements
      • findIncludingPresentationElements

        public <T extends BaseElement> java.util.Collection<T> findIncludingPresentationElements​(java.util.Collection<? extends Element> roots,
                                                                                                 boolean includeRoot)
        Collects all elements from a given root including PresentationElements
        Parameters:
        roots - roots element
        includeRoot - include project root models
        Returns:
        elements