本文整理了Java中com.intellij.util.Query.forEach
方法的一些代码示例,展示了Query.forEach
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.forEach
方法的具体详情如下:
包路径:com.intellij.util.Query
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!