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

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LocalTypeBinding


  }
}
public void acceptLocalField(FieldBinding fieldBinding) {
  IJavaElement res;
  if(fieldBinding.declaringClass instanceof ParameterizedTypeBinding) {
    LocalTypeBinding localTypeBinding = (LocalTypeBinding)((ParameterizedTypeBinding)fieldBinding.declaringClass).genericType();
    res = findLocalElement(localTypeBinding.sourceStart());
  } else {
    SourceTypeBinding typeBinding = (SourceTypeBinding)fieldBinding.declaringClass;
    res = findLocalElement(typeBinding.sourceStart());
  }
  if (res != null && res.getElementType() == IJavaElement.TYPE) {
View Full Code Here


  }
}
public void acceptLocalType(TypeBinding typeBinding) {
  IJavaElement res =  null;
  if(typeBinding instanceof ParameterizedTypeBinding) {
    LocalTypeBinding localTypeBinding = (LocalTypeBinding)((ParameterizedTypeBinding)typeBinding).genericType();
    res = findLocalElement(localTypeBinding.sourceStart());
  } else if(typeBinding instanceof SourceTypeBinding) {
    res = findLocalElement(((SourceTypeBinding)typeBinding).sourceStart());
  }
  if(res != null && res.getElementType() == IJavaElement.TYPE) {
    res = ((JavaElement)res).resolved(typeBinding);
View Full Code Here

  }
}
public void acceptLocalTypeParameter(TypeVariableBinding typeVariableBinding) {
  IJavaElement res;
  if(typeVariableBinding.declaringElement instanceof ParameterizedTypeBinding) {
    LocalTypeBinding localTypeBinding = (LocalTypeBinding)((ParameterizedTypeBinding)typeVariableBinding.declaringElement).genericType();
    res = findLocalElement(localTypeBinding.sourceStart());
  } else {
    SourceTypeBinding typeBinding = (SourceTypeBinding)typeVariableBinding.declaringElement;
    res = findLocalElement(typeBinding.sourceStart());
  }
  if (res != null && res.getElementType() == IJavaElement.TYPE) {
View Full Code Here

    if (this.types != null) {
      for (int i = 0, max = this.types.length; i < max; i++) {
        cleanUp(this.types[i]);
      }
      for (int i = 0, max = this.localTypeCount; i < max; i++) {
          LocalTypeBinding localType = localTypes[i];
        // null out the type's scope backpointers
        localType.scope = null; // local members are already in the list
        localType.enclosingCase = null;
      }
    }
View Full Code Here

  public void propagateInnerEmulationForAllLocalTypes() {

    isPropagatingInnerClassEmulation = true;
    for (int i = 0, max = this.localTypeCount; i < max; i++) {

      LocalTypeBinding localType = localTypes[i];
      // only propagate for reachable local types
      if ((localType.scope.referenceType().bits & IsReachable) != 0) {
        localType.updateInnerEmulationDependents();
      }
    }
  }
View Full Code Here

          CharOperation.charToString(((SourceTypeBinding) binding).genericSignature()));
    }

    // LocalTypeBinding have a name $Local$, we can get the real name by using the signature....
    if (binding instanceof LocalTypeBinding) {
      LocalTypeBinding ltb = (LocalTypeBinding) binding;
      if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) {
        return UnresolvedType.forSignature(new String(binding.signature()));
      } else {
        // we're reporting a problem and don't have a resolved name for an
        // anonymous local type yet, report the issue on the enclosing type
        return UnresolvedType.forSignature(new String(ltb.enclosingType.signature()));
View Full Code Here

    // Deal with the raw/basic type to give us an entry in the world type map
    UnresolvedType simpleTx = null;
    if (binding.isGenericType()) {
      simpleTx = UnresolvedType.forRawTypeName(getName(binding));
    } else if (binding.isLocalType()) {
      LocalTypeBinding ltb = (LocalTypeBinding) binding;
      if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) {
        simpleTx = UnresolvedType.forSignature(new String(binding.signature()));
      } else {
        simpleTx = UnresolvedType.forName(getName(binding));
      }
    } else {
View Full Code Here

  /*
   * @see ITypeBinding#getDeclaringMethod()
   */
  public synchronized IMethodBinding getDeclaringMethod() {
    if (this.binding instanceof LocalTypeBinding) {
      LocalTypeBinding localTypeBinding = (LocalTypeBinding) this.binding;
      MethodBinding methodBinding = localTypeBinding.enclosingMethod;
      if (methodBinding != null) {
        try {
          return this.resolver.getMethodBinding(localTypeBinding.enclosingMethod);
        } catch (RuntimeException e) {
View Full Code Here

          CharOperation.charToString(((SourceTypeBinding)binding).genericSignature()));
    }
   
    // LocalTypeBinding have a name $Local$, we can get the real name by using the signature....
    if (binding instanceof LocalTypeBinding) {
      LocalTypeBinding ltb = (LocalTypeBinding) binding;
      if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) {
        return UnresolvedType.forSignature(new String(binding.signature()));
      } else {     
        // we're reporting a problem and don't have a resolved name for an
        // anonymous local type yet, report the issue on the enclosing type
        return UnresolvedType.forSignature(new String(ltb.enclosingType.signature()));
View Full Code Here

    // Deal with the raw/basic type to give us an entry in the world type map
    UnresolvedType simpleTx = null;
    if (binding.isGenericType()) {
        simpleTx  = UnresolvedType.forRawTypeName(getName(binding));
    } else if (binding.isLocalType()) {
      LocalTypeBinding ltb = (LocalTypeBinding) binding;
      if (ltb.constantPoolName() != null && ltb.constantPoolName().length > 0) {
        simpleTx = UnresolvedType.forSignature(new String(binding.signature()));
      } else {
        simpleTx = UnresolvedType.forName(getName(binding));
      }
    }else {
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LocalTypeBinding

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.