Examples of ObjectVector


Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

      int length = projectsAndJars.length;
      JavaProject[] projectsCanSeeFocus = new JavaProject[length];
      SimpleSet visitedProjects = new SimpleSet(length);
      int projectIndex = 0;
      SimpleSet externalLibsToCheck = new SimpleSet(length);
      ObjectVector superTypes = new ObjectVector();
      IJavaElement[] focuses = getFocusedElementsAndTypes(this.pattern, focus, superTypes);
      char[][][] focusQualifiedNames = null;
      boolean isAutoBuilding = ResourcesPlugin.getWorkspace().getDescription().isAutoBuilding();
      if (isAutoBuilding && focus instanceof IJavaProject) {
        focusQualifiedNames = getQualifiedNames(superTypes);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

        scope,
        invocationSite,
        invocationScope,
        exactMatch,
        false,
        new ObjectVector(),
        new ObjectVector(),
        methodsFound,
        false,
        proposeMethod);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

          receiverType,
          scope,
          scope.enclosingSourceType(),
          false,
          true,
          new ObjectVector(),
          missingElements,
          missingElementsStarts,
          missingElementsEnds,
          missingElementsHaveProblems);
    }
    if (!this.requestor.isIgnored(CompletionProposal.FIELD_REF)) {
      findClassField(
          token,
          receiverType,
          scope,
          missingElements,
          missingElementsStarts,
          missingElementsEnds,
          missingElementsHaveProblems);
    }

    MethodScope methodScope = null;
    if (!isInsideAnnotationAttribute &&
        !this.requestor.isIgnored(CompletionProposal.KEYWORD) &&
        ((scope instanceof MethodScope && !((MethodScope)scope).isStatic)
        || ((methodScope = scope.enclosingMethodScope()) != null && !methodScope.isStatic))) {
      if (token.length > 0) {
        findKeywords(token, new char[][]{Keywords.THIS}, false, true);
      } else {
        int relevance = computeBaseRelevance();
        relevance += computeRelevanceForResolution();
        relevance += computeRelevanceForInterestingProposal();
        relevance += computeRelevanceForCaseMatching(this.completionToken, Keywords.THIS);
        relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE); // no access restriction for keywords
        relevance += R_NON_INHERITED;

        this.noProposal = false;
        if (!this.requestor.isIgnored(CompletionProposal.KEYWORD)) {
          InternalCompletionProposal proposal =  createProposal(CompletionProposal.KEYWORD, this.actualCompletionPosition);
          proposal.setName(Keywords.THIS);
          proposal.setCompletion(Keywords.THIS);
          proposal.setReplaceRange(this.startPosition - this.offset, this.endPosition - this.offset);
          proposal.setTokenRange(this.tokenStart - this.offset, this.tokenEnd - this.offset);
          proposal.setRelevance(relevance);
          this.requestor.accept(proposal);
          if (DEBUG) {
            this.printDebug(proposal);
          }
        }
      }
    }

    if (!this.requestor.isIgnored(CompletionProposal.FIELD_REF)) {
      findFields(
        token,
        receiverType,
        scope,
        new ObjectVector(),
        new ObjectVector(),
        true,
        invocationSite,
        scope,
        false,
        false,
        missingElements,
        missingElementsStarts,
        missingElementsEnds,
        missingElementsHaveProblems,
        null,
        -1,
        -1);
    }

    if (!isInsideAnnotationAttribute && !this.requestor.isIgnored(CompletionProposal.METHOD_REF)) {
      findMethods(
        token,
        null,
        null,
        receiverType,
        scope,
        new ObjectVector(),
        true,
        false,
        invocationSite,
        scope,
        false,
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

                (ReferenceBinding)guessedType,
                scope,
                scope.enclosingSourceType(),
                false,
                false,
                new ObjectVector(),
                missingElements,
                missingElementsStarts,
                missingElementsEnds,
                hasProblems);
          }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

                (ReferenceBinding)guessedType,
                scope,
                scope.enclosingSourceType(),
                false,
                false,
                new ObjectVector(),
                missingElements,
                missingElementsStarts,
                missingElementsEnds,
                hasProblems);
          }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

    boolean staticsOnly = false;
    // need to know if we're in a static context (or inside a constructor)
    int tokenLength = token.length;

    ObjectVector localsFound = new ObjectVector();
    ObjectVector fieldsFound = new ObjectVector();
    ObjectVector methodsFound = new ObjectVector();

    Scope currentScope = scope;

    if (!this.requestor.isIgnored(CompletionProposal.LOCAL_VARIABLE_REF)) {
      done1 : while (true) { // done when a COMPILATION_UNIT_SCOPE is found
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

          break;
      }
    }
   
    if(this.acceptedConstructors == null) {
      this.acceptedConstructors = new ObjectVector();
    }
    this.acceptedConstructors.add(
        new AcceptedConstructor(
            modifiers,
            simpleTypeName,
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

    if (isForbiddenType(packageName, simpleTypeName, enclosingTypeNames)) {
      return;
    }

    if(this.acceptedTypes == null) {
      this.acceptedTypes = new ObjectVector();
    }
    this.acceptedTypes.add(new AcceptedType(packageName, simpleTypeName, enclosingTypeNames, modifiers, accessibility));
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

    CompletionOnFieldType field = (CompletionOnFieldType) astNode;
    CompletionOnSingleTypeReference type = (CompletionOnSingleTypeReference) field.type;
    this.completionToken = type.token;
    setSourceAndTokenRange(type.sourceStart, type.sourceEnd);

    findTypesAndPackages(this.completionToken, scope, true, true, new ObjectVector());
    if (!this.requestor.isIgnored(CompletionProposal.KEYWORD)) {
      findKeywordsForMember(this.completionToken, field.modifiers);
    }

    if (!field.isLocalVariable && field.modifiers == ClassFileConstants.AccDefault) {
      SourceTypeBinding enclosingType = scope.enclosingSourceType();
      if (!enclosingType.isAnnotationType()) {
        if (!this.requestor.isIgnored(CompletionProposal.METHOD_DECLARATION)) {
          findMethodDeclarations(
              this.completionToken,
              enclosingType,
              scope,
              new ObjectVector(),
              null,
              null,
              null,
              false);
        }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.ObjectVector

      if (!this.requestor.isIgnored(CompletionProposal.FIELD_REF)
          || !this.requestor.isIgnored(CompletionProposal.JAVADOC_FIELD_REF)) {
        findFields(this.completionToken,
          receiverType,
          scope,
          new ObjectVector(),
          new ObjectVector(),
          false, /*not only static */
          fieldRef,
          scope,
          false,
          true,
          null,
          null,
          null,
          false,
          null,
          -1,
          -1);
      }

      if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF)
          || !this.requestor.isIgnored(CompletionProposal.JAVADOC_METHOD_REF)) {
        findMethods(
          this.completionToken,
          null,
          null,
          receiverType,
          scope,
          new ObjectVector(),
          false, /*not only static */
          false,
          fieldRef,
          scope,
          false,
 
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.