com.intellij.util.Query.forEach()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中com.intellij.util.Query.forEach方法的一些代码示例,展示了Query.forEach的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.forEach方法的具体详情如下:
包路径:com.intellij.util.Query
类名称:Query
方法名:forEach

Query.forEach介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

PsiElement resolve = reference != null ? reference.resolve() : null;
if (resolve != null) return;
boolean foundReference = !ReferencesSearch.search(o, o.getUseScope()).forEach(reference1 -> {
 ProgressManager.checkCanceled();
 PsiElement element = reference1.getElement();

代码示例来源:origin: JetBrains/Grammar-Kit

static boolean isUsedAsArgument(@NotNull BnfRule rule) {
 return !ReferencesSearch.search(rule, rule.getUseScope()).forEach(ref -> !isUsedAsArgument(ref));
}

代码示例来源:origin: com.github.adedayo.intellij.sdk/java-psi-api

@Override
 public boolean processValues(PsiMethod t, final ProcessingContext context, final PairProcessor<PsiClass, ProcessingContext> processor) {
  if (!processor.process(t.getContainingClass(), context)) return false;
  final Ref<Boolean> result = Ref.create(Boolean.TRUE);
  SuperMethodsSearch.search(t, null, true, false).forEach(new Processor<MethodSignatureBackedByPsiMethod>() {
   @Override
   public boolean process(final MethodSignatureBackedByPsiMethod signature) {
    if (!processor.process(signature.getMethod().getContainingClass(), context)) {
     result.set(Boolean.FALSE);
     return false;
    }
    return true;
   }
  });
  return result.get();
 }
});

代码示例来源:origin: dubreuia/intellij-plugin-save-actions

FunctionalExpressionSearch.search((PsiClass)member).forEach(functionalExpression -> {
 PsiFile psiFile = functionalExpression.getContainingFile();
 return handleUsage(member, memberClass, memberFile, maxLevel, memberPackage, functionalExpression, psiFile, foundUsage);

相关文章