Examples of enclosingType()


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

    ReferenceBinding superclassBinding = (ReferenceBinding)nestedType.superclass.erasure();
    if (superclassBinding.enclosingType() != null && !superclassBinding.isStatic()) {
      if (!superclassBinding.isLocalType()
          || ((NestedTypeBinding)superclassBinding).getSyntheticField(superclassBinding.enclosingType(), true) != null){

        nestedType.addSyntheticArgument(superclassBinding.enclosingType())
      }
    }
    // From 1.5 on, provide access to enclosing instance synthetic constructor argument when declared inside constructor call
    // only for direct anonymous type
    //public class X {
View Full Code Here

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

        if (current.isStatic()) break checkEnclosedInGeneric;
        if (current.isLocalType()) {
          NestedTypeBinding nestedType = (NestedTypeBinding) current.erasure();
          if (nestedType.scope.methodScope().isStatic) break checkEnclosedInGeneric;
        }       
      } while ((current = current.enclosingType()) != null);
    }
    this.maxFieldCount = 0;
    int lastVisibleFieldID = -1;
    boolean hasEnumConstants = false;
    boolean hasEnumConstantsWithoutBody = false;
View Full Code Here

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

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

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

    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

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

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

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

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

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

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

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

            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

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

        argumentBindings[i] = makeTypeBinding(typeParameters[i]);
      }
      indexOfTypeParameterBeingConverted = 0;
      baseTypeForParameterizedType = null;
      ParameterizedTypeBinding ptb = lookupEnvironment.createParameterizedType(baseTypeBinding, argumentBindings,
          baseTypeBinding.enclosingType());
      return ptb;
    } else if (typeX.isTypeVariableReference()) {
      // return makeTypeVariableBinding((TypeVariableReference)typeX);
      return makeTypeVariableBindingFromAJTypeVariable(((TypeVariableReference) typeX).getTypeVariable());
    } else if (typeX.isRawType()) {
View Full Code Here

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

    } else if (typeX.isTypeVariableReference()) {
      // return makeTypeVariableBinding((TypeVariableReference)typeX);
      return makeTypeVariableBindingFromAJTypeVariable(((TypeVariableReference) typeX).getTypeVariable());
    } else if (typeX.isRawType()) {
      ReferenceBinding baseTypeBinding = lookupBinding(typeX.getBaseName());
      RawTypeBinding rtb = lookupEnvironment.createRawType(baseTypeBinding, baseTypeBinding.enclosingType());
      return rtb;
    } else if (typeX.isGenericWildcard()) {
      if (typeX instanceof WildcardedUnresolvedType) {
        WildcardedUnresolvedType wut = (WildcardedUnresolvedType) typeX;
        int boundkind = Wildcard.UNBOUND;
View Full Code Here

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

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

        ReferenceBinding outerDeclaringClass = declaringClass;
        temp = outerDeclaringClass.enclosingType();
        while (temp != null) {
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.