Java 类com.intellij.util.MergeQuery 实例源码

项目:consulo-java    文件:MethodReferencesSearch.java   
public static Query<PsiReference> search(final SearchParameters parameters)
{
    final Query<PsiReference> result = INSTANCE.createQuery(parameters);
    if(parameters.isSharedOptimizer)
    {
        return uniqueResults(result);
    }

    final SearchRequestCollector requests = parameters.getOptimizer();

    Project project = PsiUtilCore.getProjectInReadAction(parameters.getMethod());
    return uniqueResults(new MergeQuery<PsiReference>(result, new SearchRequestQuery(project, requests)));
}
项目:intellij-ce-playground    文件:AnnotationTargetsSearch.java   
public static Query<PsiModifierListOwner> search(@NotNull PsiClass annotationClass, @NotNull SearchScope scope) {
  final Query<PsiMember> members = AnnotatedMembersSearch.search(annotationClass, scope);
  final Query<PsiPackage> packages = AnnotatedPackagesSearch.search(annotationClass, scope);
  return new MergeQuery<PsiModifierListOwner>(members, packages);
}
项目:tools-idea    文件:AnnotationTargetsSearch.java   
public static Query<PsiModifierListOwner> search(@NotNull PsiClass annotationClass, @NotNull SearchScope scope) {
  final Query<PsiMember> members = AnnotatedMembersSearch.search(annotationClass, scope);
  final Query<PsiPackage> packages = AnnotatedPackagesSearch.search(annotationClass, scope);
  return new MergeQuery<PsiModifierListOwner>(members, packages);
}
项目:consulo-java    文件:AnnotationTargetsSearch.java   
public static Query<PsiModifierListOwner> search(@NotNull PsiClass annotationClass, @NotNull SearchScope scope) {
  final Query<PsiMember> members = AnnotatedMembersSearch.search(annotationClass, scope);
  final Query<PsiJavaPackage> packages = AnnotatedPackagesSearch.search(annotationClass, scope);
  return new MergeQuery<PsiModifierListOwner>(members, packages);
}