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

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


    // 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

    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

    nestedType.addSyntheticArgumentAndField(nestedType.enclosingType())
  }
  // add superclass enclosing instance arg for anonymous types (if necessary)
  if (nestedType.isAnonymousType()) {
    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())
      }
View Full Code Here

  // add superclass enclosing instance arg for anonymous types (if necessary)
  if (nestedType.isAnonymousType()) {
    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
View Full Code Here

    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

        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

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.