Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.enclosingType()


    if (invocationType != fieldBinding.declaringClass) {
      ReferenceBinding outerInvocationType = invocationType;
      ReferenceBinding temp = outerInvocationType.enclosingType();
      while (temp != null) {
        outerInvocationType = temp;
        temp = temp.enclosingType();
      }

      ReferenceBinding outerDeclaringClass = fieldBinding.declaringClass;
      temp = outerDeclaringClass.enclosingType();
      while (temp != null) {
View Full Code Here


        outerInvocationType = temp;
        temp = temp.enclosingType();
      }

      ReferenceBinding outerDeclaringClass = fieldBinding.declaringClass;
      temp = outerDeclaringClass.enclosingType();
      while (temp != null) {
        outerDeclaringClass = temp;
        temp = temp.enclosingType();
      }
      if (outerInvocationType != outerDeclaringClass) return false;
View Full Code Here

    if (invocationType != methodBinding.declaringClass) {
      ReferenceBinding outerInvocationType = invocationType;
      ReferenceBinding temp = outerInvocationType.enclosingType();
      while (temp != null) {
        outerInvocationType = temp;
        temp = temp.enclosingType();
      }

      ReferenceBinding outerDeclaringClass = methodBinding.declaringClass;
      temp = outerDeclaringClass.enclosingType();
      while (temp != null) {
View Full Code Here

        outerInvocationType = temp;
        temp = temp.enclosingType();
      }

      ReferenceBinding outerDeclaringClass = methodBinding.declaringClass;
      temp = outerDeclaringClass.enclosingType();
      while (temp != null) {
        outerDeclaringClass = temp;
        temp = temp.enclosingType();
      }
      if (outerInvocationType != outerDeclaringClass) return false;
View Full Code Here

    // already know they are not the identical type
    ReferenceBinding outerInvocationType = receiverType;
    ReferenceBinding temp = outerInvocationType.enclosingType();
    while (temp != null) {
      outerInvocationType = temp;
      temp = temp.enclosingType();
    }

    ReferenceBinding outerDeclaringClass = referenceBinding;
    temp = outerDeclaringClass.enclosingType();
    while (temp != null) {
View Full Code Here

      outerInvocationType = temp;
      temp = temp.enclosingType();
    }

    ReferenceBinding outerDeclaringClass = referenceBinding;
    temp = outerDeclaringClass.enclosingType();
    while (temp != null) {
      outerDeclaringClass = temp;
      temp = temp.enclosingType();
    }
    return outerInvocationType == outerDeclaringClass;
View Full Code Here

            ReferenceBinding currentType = (ReferenceBinding)receiverType;
            do {
              // isStatic() is answering true for toplevel types
              if ((currentType.modifiers & ClassFileConstants.AccStatic) != 0) break checkParameterizedAllocation;
              if (currentType.isRawType()) break checkParameterizedAllocation;
            } while ((currentType = currentType.enclosingType())!= null);
            ParameterizedQualifiedTypeReference qRef = (ParameterizedQualifiedTypeReference) this.type;
            for (int i = qRef.typeArguments.length - 2; i >= 0; i--) {
              if (qRef.typeArguments[i] != null) {
                scope.problemReporter().illegalQualifiedParameterizedTypeAllocation(this.type, receiverType);
                break;
View Full Code Here

      this.contents[localContentsOffset++] = (byte) (innerClassIndex >> 8);
      this.contents[localContentsOffset++] = (byte) innerClassIndex;
      // outer class index: anonymous and local have no outer class index
      if (innerClass.isMemberType()) {
        // member or member of local
        int outerClassIndex = this.constantPool.literalIndexForType(innerClass.enclosingType().constantPoolName());
        this.contents[localContentsOffset++] = (byte) (outerClassIndex >> 8);
        this.contents[localContentsOffset++] = (byte) outerClassIndex;
      } else {
        // equals to 0 if the innerClass is not a member type
        this.contents[localContentsOffset++] = 0;
View Full Code Here

    this.innerClassesBindings.add(innerClass.erasure());
    ReferenceBinding enclosingType = innerClass.enclosingType();
    while (enclosingType != null
        && enclosingType.isNestedType()) {
      this.innerClassesBindings.add(enclosingType.erasure());
      enclosingType = enclosingType.enclosingType();
    }
  }

  public void reset(SourceTypeBinding typeBinding) {
    // the code stream is reinitialized for each method
View Full Code Here

      this.contents[localContentsOffset++] = (byte) (innerClassIndex >> 8);
      this.contents[localContentsOffset++] = (byte) innerClassIndex;
      // outer class index: anonymous and local have no outer class index
      if (innerClass.isMemberType()) {
        // member or member of local
        int outerClassIndex = this.constantPool.literalIndexForType(innerClass.enclosingType().constantPoolName());
        this.contents[localContentsOffset++] = (byte) (outerClassIndex >> 8);
        this.contents[localContentsOffset++] = (byte) outerClassIndex;
      } else {
        // equals to 0 if the innerClass is not a member type
        this.contents[localContentsOffset++] = 0;
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.