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

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


        return true;
      }
    }

    if (typeDecl.binding.isLocalType()) {
      LocalTypeBinding localTypeBinding = (LocalTypeBinding) typeDecl.binding;
      MethodBinding enclosingMethod = localTypeBinding.enclosingMethod;
      if (enclosingMethod != null) {
        if (enclosingMethod.typeVariables != null
            && enclosingMethod.typeVariables.length != 0) {
          /*
 
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 = this.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

* Force inner local types to update their innerclass emulation
*/
public void propagateInnerEmulationForAllLocalTypes() {
  this.isPropagatingInnerClassEmulation = true;
  for (int i = 0, max = this.localTypeCount; i < max; i++) {
    LocalTypeBinding localType = this.localTypes[i];
    // only propagate for reachable local types
    if ((localType.scope.referenceType().bits & IsReachable) != 0) {
      localType.updateInnerEmulationDependents();
    }
  }
}
View Full Code Here

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

        return true;
      }
    }

    if (typeDecl.binding.isLocalType()) {
      LocalTypeBinding localTypeBinding = (LocalTypeBinding) typeDecl.binding;
      MethodBinding enclosingMethod = localTypeBinding.enclosingMethod;
      if (enclosingMethod != null) {
        if (enclosingMethod.typeVariables != null
            && enclosingMethod.typeVariables.length != 0) {
          /*
 
View Full Code Here

        return true;
      }
    }

    if (typeDecl.binding.isLocalType()) {
      LocalTypeBinding localTypeBinding = (LocalTypeBinding) typeDecl.binding;
      MethodBinding enclosingMethod = localTypeBinding.enclosingMethod;
      if (enclosingMethod != null) {
        if (enclosingMethod.typeVariables != null
            && enclosingMethod.typeVariables.length != 0) {
          /*
 
View Full Code Here

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

TOP

Related Classes of 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.