Package com.intellij.psi.impl.source.resolve

Examples of com.intellij.psi.impl.source.resolve.ResolveCache


      registerApplicationService(project, PsiReferenceService.class, new PsiReferenceServiceImpl());
      registerApplicationService(project, JobLauncher.class, new JobLauncherImpl());
      registerApplicationService(project, AsyncFutureFactory.class, new AsyncFutureFactoryImpl());
      project.registerService(PsiSearchHelper.class, new PsiSearchHelperImpl(psiManager));
      project.registerService(DumbService.class, new DumbServiceImpl(project));
      project.registerService(ResolveCache.class, new ResolveCache(project.getMessageBus()));
      project.registerService(PsiFileFactory.class, new PsiFileFactoryImpl(psiManager));
      try {
        project.registerService(JavaHelper.class, new JavaHelper.AsmHelper());
      }
      catch (LinkageError e) {
View Full Code Here


    }

    @Override
    public PsiElement resolve() {
        PsiElement el = null;
        ResolveCache rc = ResolveCache.getInstance(getProject());
        if (rc != null) {
            el = rc.resolveWithCaching(this, expResolver, true, false);
        } else {
            LOG.error("ResolveCache was not found.  Could not resolve element.");
        }
        return el;
    }
View Full Code Here

    return null;
  }

  @NotNull
  public ResolveResult[] multiResolve(boolean incomplete) {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    return resolveCache.resolveWithCaching(this, RESOLVER, true, incomplete);
  }
View Full Code Here

  }

  private static final MyResolver RESOLVER = new MyResolver();

  public PsiElement resolve() {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    ResolveResult[] results = resolveCache.resolveWithCaching(this, RESOLVER, false, false);
    return results.length == 1 ? results[0].getElement() : null;
  }
View Full Code Here

  public String getCanonicalText() {
    return getText();
  }

  private List<PsiElement> multipleResolveResults() {
    final ResolveCache resolveCache = ResolveCache.getInstance(getProject());
    final ResolveResult[] results = resolveCache.resolveWithCaching(this, RESOLVER, false, false);
    return ContainerUtil.map(results, new Function<ResolveResult, PsiElement>() {
      public PsiElement fun(ResolveResult resolveResult) {
        return resolveResult.getElement();
      }
    });
View Full Code Here

TOP

Related Classes of com.intellij.psi.impl.source.resolve.ResolveCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.