Examples of enclosingType()


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

      if (onTypeBinding.isParameterizedType()) {
        // might be OK... pr132349
        ParameterizedTypeBinding ptb = (ParameterizedTypeBinding)onTypeBinding;
        if (ptb.isNestedType()) {
          if (ptb.typeVariables()==null || ptb.typeVariables().length==0) {
            if (ptb.enclosingType().isRawType()) onTypeBinding = ptb.type;
          }
        }
      }
    }
  }
View Full Code Here

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

        ParameterizedTypeBinding parameterizedTypeBinding2 = (ParameterizedTypeBinding) typeBinding2;
        return CharOperation.equals(parameterizedTypeBinding.compoundName, parameterizedTypeBinding2.compoundName)
          && (parameterizedTypeBinding.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
              == (parameterizedTypeBinding2.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
          && isEqual(parameterizedTypeBinding.arguments, parameterizedTypeBinding2.arguments, visitedTypes)
          && isEqual(parameterizedTypeBinding.enclosingType(), parameterizedTypeBinding2.enclosingType(), visitedTypes);
             
      case Binding.WILDCARD_TYPE :
        if (!typeBinding2.isWildcard()) {
          return false;
        }
View Full Code Here

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

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

      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

Examples of org.aspectj.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

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

        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

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

    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

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

        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

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

    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

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.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())
      }
    }
    // From 1.5 on, provide access to enclosing instance synthetic constructor argument when declared inside constructor call
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.