Package org.aspectj.org.eclipse.jdt.internal.core

Examples of org.aspectj.org.eclipse.jdt.internal.core.TypeVector


}
/*
* Returns whether all subtypes of the given type have been pruned.
*/
private boolean pruneDeadBranches(IType type) {
  TypeVector subtypes = (TypeVector)this.typeToSubtypes.get(type);
  if (subtypes == null) return true;
  pruneDeadBranches(subtypes.copy().elements());
  subtypes = (TypeVector)this.typeToSubtypes.get(type);
  return (subtypes == null || subtypes.size == 0);
}
View Full Code Here


      this.removeType(subtypes[i]);
    }
  }
  IType superclass = (IType)this.classToSuperclass.remove(type);
  if (superclass != null) {
    TypeVector types = (TypeVector)this.typeToSubtypes.get(superclass);
    if (types != null) types.remove(type);
  }
  IType[] superinterfaces = (IType[])this.typeToSuperInterfaces.remove(type);
  if (superinterfaces != null) {
    for (int i = 0, length = superinterfaces.length; i < length; i++) {
      IType superinterface = superinterfaces[i];
      TypeVector types = (TypeVector)this.typeToSubtypes.get(superinterface);
      if (types != null) types.remove(type);
    }
  }
  this.interfaces.remove(type);
}
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.TypeVector

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.