Examples of CandidateInfo


Examples of com.intellij.psi.infos.CandidateInfo

  @NotNull
  private static ResolveResult[] toCandidateInfoArray(@Nullable PsiElement element) {
    if (element == null) {
      return ResolveResult.EMPTY_ARRAY;
    }
    return new ResolveResult[]{new CandidateInfo(element, null)};
  }
View Full Code Here

Examples of com.intellij.psi.infos.CandidateInfo

  @NotNull
  private static ResolveResult[] toCandidateInfoArray(List<? extends PsiElement> elements) {
    final ResolveResult[] result = new ResolveResult[elements.size()];
    for (int i = 0, size = elements.size(); i < size; i++) {
      result[i] = new CandidateInfo(elements.get(i), EmptySubstitutor.getInstance());
    }
    return result;
  }
View Full Code Here

Examples of com.intellij.psi.infos.CandidateInfo

          else {
            psiClass = (PsiClass) resolve;
            substitutor = PsiSubstitutor.EMPTY;
          }
          if (psiClass != null) {
            return new CandidateInfo(psiClass, substitutor);
          }
          else
            return JavaResolveResult.EMPTY;
        }
        return JavaResolveResult.EMPTY;
      }
      else {
        PsiElement scope = accessObject.getContext();
        PsiElement lastParent = accessObject;
        while (scope != null) {
          if (scope instanceof PsiClass) {
            if (scope instanceof PsiAnonymousClass) {
              if (lastParent instanceof PsiExpressionList) {
                lastParent = scope;
                scope = scope.getContext();
                continue;
              }
            }
            return new CandidateInfo(scope, PsiSubstitutor.EMPTY);
          }
          lastParent = scope;
          scope = scope.getContext();
        }
        return JavaResolveResult.EMPTY;
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.analyzer.CandidateInfo

    // Get service reference from analyzer context
    ServiceReference serviceReference = analyzerContext.getServiceReference();

    // Create normalized data about the service under test.
    CandidateInfo candidate = new CandidateInfo(serviceReference, wsdlDocument);

    analyzerContext.setCandidateInfo(candidate);

    // Set prereq type to entry container
    reporter.setPrereqType(Reporter.PREREQ_TYPE_ENTRY_CONTAINER);
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.analyzer.CandidateInfo

    /* TEMP: Get it from analyzer config passed in on init method
    CandidateInfo candidate = entryContext
                              .getAnalyzerContext()
                              .getCandidateInfo();
    */
    CandidateInfo candidate = analyzerContext.getCandidateInfo();

    // Service reference
    ServiceReference serviceReference = analyzerContext.getServiceReference();

    // Get the definition element
    Definition definition = candidate.getWsdlDocument().getDefinitions();

    Binding binding = null;
    if (serviceReference.getWSDLElement().isPort())
    {
      // Get service
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.