Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Class and Description |
---|---|
static class |
ClassIndex.SearchScope
Default predefined
ClassIndex.SearchScopeType s |
Modifier and Type | Method and Description |
---|---|
static ClassIndex.SearchScopeType |
ClassIndex.createPackageSearchScope(ClassIndex.SearchScopeType base,
String... pkgs)
Creates a search scope limited to list of packages.
|
Modifier and Type | Method and Description |
---|---|
static ClassIndex.SearchScopeType |
ClassIndex.createPackageSearchScope(ClassIndex.SearchScopeType base,
String... pkgs)
Creates a search scope limited to list of packages.
|
Modifier and Type | Method and Description |
---|---|
Set<ElementHandle<ModuleElement>> |
ClassIndex.getDeclaredModules(String name,
ClassIndex.NameKind kind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns
ElementHandle s for all declared modules in given classpath corresponding to the name. |
Iterable<ClassIndex.Symbols> |
ClassIndex.getDeclaredSymbols(String name,
ClassIndex.NameKind kind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns descriptions of symbols found on the given classpath and matching the additional criteria.
|
Set<ElementHandle<TypeElement>> |
ClassIndex.getDeclaredTypes(String name,
ClassIndex.NameKind kind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns
ElementHandle s for all declared types in given classpath corresponding to the name. |
Set<ElementHandle<TypeElement>> |
ClassIndex.getElements(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns a set of
ElementHandle s containing reference(s) to given type element. |
Set<ElementHandle<TypeElement>> |
ClassIndex.getElementsForPackage(ElementHandle<PackageElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns a set of
ElementHandle s containing reference(s) to given package element. |
static Set<String> |
SourceUtils.getModuleNames(CompilationInfo info,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns names of all modules within given scope.
|
Set<String> |
ClassIndex.getPackageNames(String prefix,
boolean directOnly,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns names af all packages in given classpath starting with prefix.
|
Set<FileObject> |
ClassIndex.getResources(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns a set of source files containing reference(s) to given type element.
|
Set<FileObject> |
ClassIndex.getResources(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<? extends ClassIndex.SearchScopeType> scope,
Set<ClassIndex.ResourceType> resourceType)
Returns a set of source or binary files containing reference(s) to given type element.
|
Set<FileObject> |
ClassIndex.getResourcesForPackage(ElementHandle<PackageElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns a set of source files containing reference(s) to given package element.
|
Built on October 25 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.