mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
add docs for PsiPackage#containsClassNamed
GitOrigin-RevId: 3b1147a5b04647e68e88e4f60a3bbd587dd9afae
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3db4905b69
commit
934b1eedf2
@@ -119,6 +119,11 @@ public interface PsiPackage extends PsiCheckedRenameElement, NavigationItem, Psi
|
||||
@Nullable("default package") @NlsSafe
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the package contains a class with short name {@code shortName}.
|
||||
*
|
||||
* @see #hasClassWithShortName(String, GlobalSearchScope)
|
||||
*/
|
||||
boolean containsClassNamed(@NotNull String shortName);
|
||||
|
||||
/**
|
||||
@@ -134,6 +139,8 @@ public interface PsiPackage extends PsiCheckedRenameElement, NavigationItem, Psi
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the package contains a class with short name {@code shortName} belonging to the provided scope.
|
||||
*
|
||||
* @see #containsClassNamed(String)
|
||||
*/
|
||||
default boolean hasClassWithShortName(@NotNull String shortName, @NotNull GlobalSearchScope scope) {
|
||||
return findClassByShortName(shortName, scope).length > 0;
|
||||
|
||||
Reference in New Issue
Block a user