public final class TypeElementFinder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TypeElementFinder.Customizer
Customization of search scope and results
|
Constructor and Description |
---|
TypeElementFinder() |
Modifier and Type | Method and Description |
---|---|
static ElementHandle<TypeElement> |
find(ClasspathInfo cpInfo,
String initialText,
TypeElementFinder.Customizer customizer)
Searches for classes on given classpath using defined restrictions.
|
static ElementHandle<TypeElement> |
find(ClasspathInfo cpInfo,
TypeElementFinder.Customizer customizer)
Searches for classes on given classpath using defined restrictions.
|
@CheckForNull public static ElementHandle<TypeElement> find(@NullAllowed ClasspathInfo cpInfo, @NullAllowed TypeElementFinder.Customizer customizer)
cpInfo
- classpath used for search; optional, can be null,
everything available will be searchedcustomizer
- possibility to add restrictions to search result;
optional, can be null, no restriction will be applied@CheckForNull public static ElementHandle<TypeElement> find(@NullAllowed ClasspathInfo cpInfo, @NullAllowed String initialText, @NullAllowed TypeElementFinder.Customizer customizer)
cpInfo
- classpath used for search; optional, can be null,
everything available will be searchedinitialText
- text that should be prefilled in the type name text field, or null to prefill text automatically from the contextcustomizer
- possibility to add restrictions to search result;
optional, can be null, no restriction will be applied