mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[java-indexing] OverridingMethodsSearch: javadoc
GitOrigin-RevId: 6fa186fd35f5fcd3514f5eba973cd22bbd004274
This commit is contained in:
committed by
intellij-monorepo-bot
parent
feb2ee9625
commit
f4531f9795
@@ -55,11 +55,20 @@ public final class OverridingMethodsSearch extends ExtensibleQueryFactory<PsiMet
|
||||
return INSTANCE.createUniqueResultsQuery(new SearchParameters(method, scope, checkDeep));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param method base method
|
||||
* @param checkDeep if true, indirect overrides will also be returned
|
||||
* @return query containing methods that override the base method
|
||||
*/
|
||||
@NotNull
|
||||
public static Query<PsiMethod> search(@NotNull PsiMethod method, final boolean checkDeep) {
|
||||
return search(method, ReadAction.compute(method::getUseScope), checkDeep);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param method base method
|
||||
* @return query containing methods that override the base method (directly or indirectly)
|
||||
*/
|
||||
@NotNull
|
||||
public static Query<PsiMethod> search(@NotNull PsiMethod method) {
|
||||
return search(method, true);
|
||||
|
||||
Reference in New Issue
Block a user