Examples of resolve()


Examples of com.intellij.psi.PsiClassType.resolve()

  }

  public static PsiClass getReturnClassFromMethod(PsiMethod psiMethod) {
    PsiClassType returnType = ((PsiClassType) psiMethod.getReturnType());
    if (returnType != null) {
      return returnType.resolve();
    }
    return null;
  }

  public static PsiField findField(PsiElement element) {
View Full Code Here

Examples of com.intellij.psi.PsiJavaCodeReferenceElement.resolve()

            {
                continue;
            }

            // If class reference can't be resolved, ignore
            PsiClass concernClass = (PsiClass) concernClassReference.resolve();
            if( concernClass == null )
            {
                continue;
            }
View Full Code Here

Examples of com.intellij.psi.PsiReference.resolve()

    if (element instanceof Symbol) {
//      usages.add(element);

      final PsiReference ref = element.getReference();
      if (ref != null) {
        final PsiElement resolve = ref.resolve();
        if (resolve != null && resolve instanceof Symbol) {
          if (!resolve.equals(element))
            usages.add(resolve);
          final Collection<Symbol> symbolsInFile = PsiTreeUtil.findChildrenOfType(psiFile, Symbol.class);
          for (Symbol symbol : symbolsInFile) {
View Full Code Here

Examples of com.intellij.psi.impl.source.resolve.reference.impl.providers.PsiPackageReference.resolve()

      return superElements;
    }

    if (JavaPsiFacade.getInstance(reference.getProject()).getNameHelper().isQualifiedName(reference.getText())) {
      PsiPackageReference packageReference = new PackageReferenceSet(reference.getText(), reference, 0).getLastReference();
      PsiElement packageTarget = packageReference != null ? packageReference.resolve() : null;
      if (packageTarget != null) {
        return Arrays.asList(packageTarget);
      }
    }
View Full Code Here

Examples of com.jetbrains.lang.dart.psi.DartPathOrLibraryReference.resolve()

  @Nullable
  public PsiElement resolveLibrary() {
    final DartPsiCompositeElementImpl statement =
      PsiTreeUtil.getParentOfType(this, DartImportStatementImpl.class, DartExportStatementImpl.class);
    final DartPathOrLibraryReference pathOrLibraryReference = PsiTreeUtil.getChildOfType(statement, DartPathOrLibraryReference.class);
    return pathOrLibraryReference != null ? pathOrLibraryReference.resolve() : null;
  }

  @NotNull
  @Override
  public DartClassResolveResult resolveDartClass() {
View Full Code Here

Examples of com.jetbrains.lang.dart.psi.DartReference.resolve()

public class DartFixesUtil {
  public static boolean isStaticContext(PsiFile file, int startOffset) {
    DartReference leftReference =
      DartResolveUtil.getLeftReference(PsiTreeUtil.getParentOfType(file.findElementAt(startOffset), DartReference.class));
    return leftReference != null && DartComponentType.typeOf(leftReference.resolve()) == DartComponentType.CLASS;
  }

  public static List<BaseCreateFix> findFixesForUnresolved(PsiFile file, int startOffset) {
    final DartReference reference = PsiTreeUtil.getParentOfType(file.findElementAt(startOffset), DartReference.class);
    final String name = reference != null ? reference.getText() : null;
View Full Code Here

Examples of com.jetbrains.php.lang.psi.elements.MethodReference.resolve()

                return methodMatchParameter;
            }

            // walk down next method
            MethodReference methodReference = bag.getMethodReference();
            PsiElement method = methodReference.resolve();
            if(!(method instanceof Method)) {
                return null;
            }

            PsiElement[] parameterReferences = PhpElementsUtil.getMethodParameterReferences((Method) method, bag.getParameterBag().getIndex());
View Full Code Here

Examples of com.lotus.sametime.lookup.Resolver.resolve()

            this.resolvedNameSet = new HashSet();
       
            if (LOG.isDebugEnabled()) {
                LOG.debug("resolving: " + this.usernamesToResolveSet);
            }
            resolver.resolve(
               (String[]) this.usernamesToResolveSet.toArray(new String[this.usernamesToResolveSet.size()]));
       
            // how long do we wait to resolve?
            boolean bored = false;
            long waitStart = System.currentTimeMillis();
View Full Code Here

Examples of com.mobixess.jodb.core.ITransactionResolver.resolve()

                PersistentObjectHandle handle = tHandle.getHandle();
                int activeObjectHash = tHandle.getIdentityHash();
                byte version = (byte) tHandle.getCyclicalVersionCounter();
                ObjectIdentity objectIdentity = base.checkObjectChanged(handle.getObjectEntryOffset(), activeObjectHash, version);
                if(objectIdentity!=null){
                    if(_transactionResolver!=null && !transactionResolver.resolve(element, sessionContainer,null)){
                        iter.remove();
                        continue;
                    }
                    tHandle.setIdentityHash(objectIdentity._hashIdentity);
                    tHandle.setCyclicalVersionCounter(objectIdentity._version);
View Full Code Here

Examples of com.mozilla.grouperfish.services.api.Index.resolve()

    /** Run the configured transform over the query results. */
    public void schedule(final Scope ns, final Query query, final TransformConfig transform) {
        Assert.nonNull(query, transform);
        final Index index = indexes.index(ns.bucket(Type.DOCUMENT));
        for (final Query concreteQuery : index.resolve(query)) {
            schedule(new Task(ns, concreteQuery, transform));
        }
    }

    /** Run all configured transforms over the query results. */
 
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.