public static final class Finder.ByTypeRecursivelyFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] types,
boolean includeRoots)
Collect all elements of given specific type (not super class or interface) from the root element.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] types,
boolean includeRoots,
boolean includeAdditionalContents,
org.eclipse.core.runtime.IProgressMonitor monitor)
Collect all elements of given specific type (not super class or interface) from the root element.
|
<T extends Element> |
find(Element root,
java.lang.Class[] types)
Collect all elements of given specific type (not super class or interface) from the root element.
|
<T extends Element> |
find(Element root,
java.lang.Class[] types,
boolean includeRoots)
Collect all elements of given specific type (not super class or interface) from the root element.
|
<T extends Element> |
find(Element root,
java.lang.Class[] types,
boolean includeRoot,
boolean includeAdditionalContents,
org.eclipse.core.runtime.IProgressMonitor monitor)
Collect all elements of given specific type (not super class or interface) from the root element.
|
<T extends Element> |
find(Project project,
java.lang.Class[] types)
Collect all elements of given specific type (not super class or interface) from the project.
|
<T extends Element> |
find(Project project,
java.lang.Class[] types,
boolean includeRoots)
Collect all elements of given specific type (not super class or interface) from the project
|
<T extends Element> |
iterator(java.util.Collection<? extends Element> roots,
java.lang.Class[] types)
Returns iterator which contains elements of given specific type (not super class or interface).
|
<T extends Element> |
iterator(java.util.Collection<? extends Element> roots,
java.lang.Class[] types,
boolean includeRoot)
Returns iterator which contains elements of given specific type (not super class or interface).
|
<T extends Element> |
iterator(Element root,
java.lang.Class[] types)
Returns iterator which contains elements of given specific type (not super class or interface).
|
<T extends Element> |
iterator(Element root,
java.lang.Class[] types,
boolean includeRoot)
Returns iterator which contains elements of given specific type (not super class or interface).
|
<T extends Element> |
iterator(Project project,
java.lang.Class[] types)
Returns iterator which contains elements of given specific type (not super class or interface).
|
<T extends Element> |
iterator(Project project,
java.lang.Class[] types,
boolean includeRoot)
Returns iterator which contains elements of given specific type (not super class or interface).
|
public <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root, @CheckForNull java.lang.Class[] types)
root
- root element.types
- element type. Null means any elementpublic <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Element root, @CheckForNull java.lang.Class[] types, boolean includeRoot)
root
- root element.types
- element type. Null means any elementincludeRoot
- include root into resultpublic <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types)
roots
- root elements.types
- element type. Null means any elementpublic <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types, boolean includeRoot)
roots
- root elements.types
- element type. Null means any elementincludeRoot
- include root elements into resultpublic <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project, @CheckForNull java.lang.Class[] types)
project
- projecttypes
- element type. Null means any elementpublic <T extends Element> com.nomagic.ci.persistence.local.query.CloseableIterator<T> iterator(Project project, @CheckForNull java.lang.Class[] types, boolean includeRoot)
project
- projecttypes
- element type. Null means any elementincludeRoot
- include project root models into resultpublic <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class[] types)
root
- the root element for searchingtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)public <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class[] types, boolean includeRoots)
root
- the root element for searchingtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots
- include root elements into search resultspublic <T extends Element> java.util.Collection<T> find(Project project, @CheckForNull java.lang.Class[] types)
project
- projecttypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)public <T extends Element> java.util.Collection<T> find(Project project, @CheckForNull java.lang.Class[] types, boolean includeRoots)
project
- projecttypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots
- include root models of project into search resultspublic <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class[] types, boolean includeRoot, boolean includeAdditionalContents, @CheckForNull org.eclipse.core.runtime.IProgressMonitor monitor)
root
- the root element for searchingtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoot
- include root elements into search resultsincludeAdditionalContents
- include additional content of Element defined in DSLmonitor
- progress monitorpublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types, boolean includeRoots)
roots
- the root element for searchingtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots
- include root elements into search resultspublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types, boolean includeRoots, boolean includeAdditionalContents, @CheckForNull org.eclipse.core.runtime.IProgressMonitor monitor)
roots
- the root element for searchingtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc)includeRoots
- include root elements into search resultsincludeAdditionalContents
- include additional content of Element defined in DSLmonitor
- progress monitor