Class HierarchyBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder
- Direct Known Subclasses:
IndexBasedHierarchyBuilder
,RegionBasedHierarchyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected TypeHierarchy
The hierarchy being built.protected HierarchyResolver
The resolver used to resolve type hierarchiesprotected Map
A temporary cache of infos to handles to speed info to handle translation - it only contains the entries for the types in the region (in other words, it contains no supertypes outside the region).protected NameLookup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
build(boolean computeSubtypes)
protected void
Configure this type hierarchy by computing the supertypes only.void
connect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles)
Connect the supplied type to its superclass & superinterfaces.protected ICompilationUnit
createCompilationUnitFromPath(Openable handle, org.eclipse.core.resources.IFile file, char[] moduleName)
Create an ICompilationUnit info from the given compilation unit on disk.protected IBinaryType
createInfoFromClassFile(Openable handle, org.eclipse.core.resources.IResource file)
Creates the type info from the given class file on disk and adds it to the given list of infos.protected IBinaryType
createInfoFromClassFileInJar(Openable classFile)
Create a type info from the given class file in a jar and adds it to the given list of infos.protected IType
getHandle(IGenericType genericType, ReferenceBinding binding)
Returns a handle for the given generic type or null if not found.protected IType
getType()
protected IType
lookupBinaryHandle(IBinaryType typeInfo)
Looks up and returns a handle for the given binary info.protected void
worked(org.eclipse.core.runtime.IProgressMonitor monitor, int work)
-
Field Details
-
hierarchy
The hierarchy being built. -
nameLookup
- See Also:
NameLookup
-
hierarchyResolver
The resolver used to resolve type hierarchies- See Also:
HierarchyResolver
-
infoToHandle
A temporary cache of infos to handles to speed info to handle translation - it only contains the entries for the types in the region (in other words, it contains no supertypes outside the region). -
focusQualifiedName
-
-
Constructor Details
-
HierarchyBuilder
- Throws:
JavaModelException
-
-
Method Details
-
build
public abstract void build(boolean computeSubtypes) throws JavaModelException, org.eclipse.core.runtime.CoreException- Throws:
JavaModelException
org.eclipse.core.runtime.CoreException
-
buildSupertypes
protected void buildSupertypes()Configure this type hierarchy by computing the supertypes only. -
connect
public void connect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles)Connect the supplied type to its superclass & superinterfaces. The superclass & superinterfaces are the identical binary or source types as supplied by the name environment. -
getHandle
Returns a handle for the given generic type or null if not found. -
getType
-
lookupBinaryHandle
Looks up and returns a handle for the given binary info. -
worked
protected void worked(org.eclipse.core.runtime.IProgressMonitor monitor, int work) -
createCompilationUnitFromPath
protected ICompilationUnit createCompilationUnitFromPath(Openable handle, org.eclipse.core.resources.IFile file, char[] moduleName)Create an ICompilationUnit info from the given compilation unit on disk. -
createInfoFromClassFile
protected IBinaryType createInfoFromClassFile(Openable handle, org.eclipse.core.resources.IResource file)Creates the type info from the given class file on disk and adds it to the given list of infos. -
createInfoFromClassFileInJar
Create a type info from the given class file in a jar and adds it to the given list of infos.
-