public static class Finder.ByQualifiedNameFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T extends Element> |
find(Project project,
java.lang.String qualifiedName)
Find Element with a given qualified name.
|
<T extends Element> |
find(Project project,
java.lang.String qualifiedName,
java.lang.Class type)
Finds element with a given qualified name.
|
<T extends Element> |
find(Project project,
java.lang.String qualifiedName,
java.lang.Class[] type)
Finds element with a given qualified name.
|
<T extends Element> |
find(Project project,
java.lang.String qualifiedName,
java.lang.Class[] type,
boolean searchJustOne)
Finds elements with a given qualified name.
|
<T extends Element> |
find(Project project,
java.lang.String qualifiedName,
java.lang.Class type,
boolean searchJustOne)
Finds elements with a given qualified name.
|
<T extends Element> |
findRelative(Element root,
java.lang.String qualifiedName,
java.lang.Class type)
Search is done in a given scope (root Element) by searching for an element with a given partial qualified name.
|
<T extends Element> |
findRelative(Element root,
java.lang.String qualifiedName,
java.lang.Class[] type)
Search is done in a given scope (root Element) by searching for an element with a given partial qualified name.
|
@CheckForNull public <T extends Element> T find(Project project, java.lang.String qualifiedName)
project
- a projectqualifiedName
- qualified name of Element@CheckForNull public <T extends Element> T find(Project project, java.lang.String qualifiedName, @CheckForNull java.lang.Class type)
project
- a projectqualifiedName
- qualified name of Elementtype
- strict class type of element. Null mean any type.@CheckForNull public <T extends Element> T find(Project project, java.lang.String qualifiedName, @CheckForNull java.lang.Class[] type)
project
- a projectqualifiedName
- qualified name of Elementtype
- strict class type of element. Null mean any type.public <T extends Element> java.util.Collection<T> find(Project project, java.lang.String qualifiedName, @CheckForNull java.lang.Class type, boolean searchJustOne)
project
- a projectqualifiedName
- qualified name of Elementtype
- strict class type of element. Null mean any typesearchJustOne
- stop search if one element is foundpublic <T extends Element> java.util.Collection<T> find(Project project, java.lang.String qualifiedName, @CheckForNull java.lang.Class[] type, boolean searchJustOne)
project
- a projectqualifiedName
- qualified name of Elementtype
- strict class type of element. Null mean any typesearchJustOne
- stop search if one element is found@CheckForNull public <T extends Element> T findRelative(Element root, java.lang.String qualifiedName, @CheckForNull java.lang.Class type)
root
- scope ElementqualifiedName
- qualified name of elementtype
- strict class type of element. Nulls means any element@CheckForNull public <T extends Element> T findRelative(Element root, java.lang.String qualifiedName, @CheckForNull java.lang.Class[] type)
root
- scope ElementqualifiedName
- qualified name of elementtype
- strict class type of element. Nulls means any element