Package org.eclipse.jdt.internal.compiler.util

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


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

    if (isForbidden(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

    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, astNode);
    }

    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

      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

    }
    setSourceAndTokenRange(rangeStart, astNode.sourceEnd, false);

    if (qualifiedBinding == null) {
      if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF)) {
        findImplicitMessageSends(this.completionToken, argTypes, scope, messageSend, scope, new ObjectVector());
      }
    } else if (!this.requestor.isIgnored(CompletionProposal.METHOD_REF)) {
      findMethods(
        this.completionToken,
        null,
        argTypes,
        (ReferenceBinding) ((ReferenceBinding) qualifiedBinding).capture(scope, messageSend.receiver.sourceEnd),
        scope,
        new ObjectVector(),
        false,
        false/* prefix match */,
        messageSend,
        scope,
        false,
 
View Full Code Here

          (ReferenceBinding) qualifiedBinding,
          scope,
          scope.enclosingSourceType(),
          false,
          false,
          new ObjectVector(),
          null,
          null,
          null,
          false);
      }
View Full Code Here

    findTypesAndPackages(
        this.completionToken,
        scope,
        (this.assistNodeInJavadoc & CompletionOnJavadoc.BASE_TYPES) != 0,
        false,
        new ObjectVector());
  }
View Full Code Here

            }
          }
        }
      }

      findTypesAndPackages(this.completionToken, scope, false, false, new ObjectVector());
    } else if (annot.type instanceof CompletionOnQualifiedTypeReference) {
      this.insideQualifiedReference = true;

      CompletionOnQualifiedTypeReference type = (CompletionOnQualifiedTypeReference) annot.type;
      this.completionToken = type.completionIdentifier;
      long completionPosition = type.sourcePositions[type.tokens.length];
      if (qualifiedBinding instanceof PackageBinding) {

        setSourceRange(astNode.sourceStart, (int) completionPosition);
        setTokenRange((int) (completionPosition >>> 32), (int) completionPosition);
        // replace to the end of the completion identifier
        findTypesAndSubpackages(this.completionToken, (PackageBinding) qualifiedBinding, scope);
      } else {
        setSourceAndTokenRange((int) (completionPosition >>> 32), (int) completionPosition);

        findMemberTypes(
          this.completionToken,
          (ReferenceBinding) qualifiedBinding,
          scope,
          scope.enclosingSourceType(),
          false,
          false,
          new ObjectVector(),
          null,
          null,
          null,
          false);
      }
View Full Code Here

      if (!access.isInsideAnnotation) {
        if (!this.requestor.isIgnored(CompletionProposal.KEYWORD) && !access.isSuperAccess()) {
          findKeywords(this.completionToken, new char[][]{Keywords.NEW}, false, false);
        }

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

        boolean superCall = access.receiver instanceof SuperReference;

        findFieldsAndMethods(
          this.completionToken,
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.util.ObjectVector

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.