public static final class Finder.ByTypeFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class type)
Collects owned elements of the given root elements.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] types)
Collects owned elements of the given root elements.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class[] types,
boolean includeRoot)
Collects owned elements of the given root elements.
|
<T extends Element> |
find(java.util.Collection<? extends Element> roots,
java.lang.Class type,
boolean includeRoot)
Collects owned elements of the given root elements.
|
<T extends Element> |
find(Element root,
java.lang.Class type)
Collects owned elements of the given root elements of specified types.
|
<T extends Element> |
find(Element root,
java.lang.Class[] types)
Collects owned elements of the given root elements of specified types.
|
<T extends Element> |
find(Element root,
java.lang.Class[] types,
boolean includeRoot)
Collects owned elements of the given root elements of specified types.
|
<T extends Element> |
find(Element root,
java.lang.Class type,
boolean includeRoot)
Collects owned elements of the given root elements of specified types.
|
<T extends Element> |
find(Project project,
java.lang.Class type)
Collects owned elements of the given project root models.
|
<T extends Element> |
find(Project project,
java.lang.Class[] types)
Collects owned elements of the given project root models.
|
<T extends Element> |
find(Project project,
java.lang.Class[] types,
boolean includeRoots)
Collects owned elements of the given project root models.
|
<T extends Element> |
find(Project project,
java.lang.Class type,
boolean includeRoots)
Collects owned elements of the given project root models.
|
static <T extends Element> |
findInCollection(java.util.Collection<? extends Element> elements,
java.lang.Class type)
Search by type for elements in the given Collection
|
static <T extends Element> |
findInCollection(java.util.Collection<? extends Element> elements,
java.lang.Class[] types)
Search by type for elements in the given Collection
|
public <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class type)
root
- root elementtype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typepublic static <T extends Element> java.util.Collection<? extends T> findInCollection(java.util.Collection<? extends Element> elements, java.lang.Class type)
elements
- elementstype
- element metatypepublic static <T extends Element> java.util.Collection<? extends T> findInCollection(java.util.Collection<? extends Element> elements, java.lang.Class[] types)
elements
- elementstypes
- element meta typespublic <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class type, boolean includeRoot)
root
- root elementtype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typeincludeRoot
- include root elements into search resultspublic <T extends Element> java.util.Collection<T> find(Project project, @CheckForNull java.lang.Class type)
project
- projecttype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typepublic <T extends Element> java.util.Collection<T> find(Project project, @CheckForNull java.lang.Class type, boolean includeRoots)
project
- projecttype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typeincludeRoots
- include root elements of the projectpublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class type)
roots
- root elementstype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typepublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class type, boolean includeRoot)
roots
- root elementstype
- Element class types (Class.class, Package.class, Property.class and etc). Null means any typeincludeRoot
- include root elements into search resultspublic <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class[] types)
root
- root elementtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc). Null means any typepublic <T extends Element> java.util.Collection<T> find(Element root, @CheckForNull java.lang.Class[] types, boolean includeRoot)
root
- root elementtypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc). Null means any typeincludeRoot
- 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). Null means any typepublic <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). Null means any typeincludeRoots
- include root elements of the projectpublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types)
roots
- root elementstypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc). Null means any typepublic <T extends Element> java.util.Collection<T> find(java.util.Collection<? extends Element> roots, @CheckForNull java.lang.Class[] types, boolean includeRoot)
roots
- root elementstypes
- an array of Element's class types (Class.class, Package.class, Property.class and etc). Null means any typeincludeRoot
- include root elements into search results