Class RegionBasedTypeHierarchy

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy
org.aspectj.org.eclipse.jdt.internal.core.hierarchy.RegionBasedTypeHierarchy
All Implemented Interfaces:
IElementChangedListener, ITypeHierarchy

public class RegionBasedTypeHierarchy extends TypeHierarchy
  • Field Details

    • region

      protected IRegion region
      The region of types for which to build the hierarchy
  • Constructor Details

    • RegionBasedTypeHierarchy

      public RegionBasedTypeHierarchy(IRegion region, ICompilationUnit[] workingCopies, IType type, boolean computeSubtypes)
      Creates a TypeHierarchy on the types in the specified region, considering first the given working copies, using the projects in the given region for a name lookup context. If a specific type is also specified, the type hierarchy is pruned to only contain the branch including the specified type.
  • Method Details

    • initializeRegions

      protected void initializeRegions()
      Description copied from class: TypeHierarchy
      Initializes the file, package and project regions
      Overrides:
      initializeRegions in class TypeHierarchy
    • compute

      protected void compute() throws JavaModelException, org.eclipse.core.runtime.CoreException
      Compute this type hierarchy.
      Overrides:
      compute in class TypeHierarchy
      Throws:
      JavaModelException
      org.eclipse.core.runtime.CoreException
    • isAffectedByOpenable

      protected boolean isAffectedByOpenable(IJavaElementDelta delta, IJavaElement element, int eventType)
      Description copied from class: TypeHierarchy
      Returns true if the given type delta (a compilation unit delta or a class file delta) could affect this type hierarchy.
      Overrides:
      isAffectedByOpenable in class TypeHierarchy
      eventType - TODO
    • javaProject

      public IJavaProject javaProject()
      Returns the java project this hierarchy was created in.
      Overrides:
      javaProject in class TypeHierarchy
    • pruneDeadBranches

      public void pruneDeadBranches()
    • removeType

      protected void removeType(IType type)
      Removes all the subtypes of the given type from the type hierarchy, removes its superclass entry and removes the references from its super types.