Class HierarchyBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder
- Direct Known Subclasses:
IndexBasedHierarchyBuilder,RegionBasedHierarchyBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected TypeHierarchyThe hierarchy being built.protected HierarchyResolverThe resolver used to resolve type hierarchiesprotected MapA 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbuild(boolean computeSubtypes) protected voidConfigure this type hierarchy by computing the supertypes only.voidconnect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles) Connect the supplied type to its superclass and superinterfaces.protected ICompilationUnitcreateCompilationUnitFromPath(Openable handle, org.eclipse.core.resources.IFile file, char[] moduleName) Create an ICompilationUnit info from the given compilation unit on disk.protected IBinaryTypecreateInfoFromClassFile(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 IBinaryTypecreateInfoFromClassFileInJar(Openable classFile) Create a type info from the given class file in a jar and adds it to the given list of infos.protected ITypegetHandle(IGenericType genericType, ReferenceBinding binding) Returns a handle for the given generic type or null if not found.protected ITypegetType()protected ITypelookupBinaryHandle(IBinaryType typeInfo) Looks up and returns a handle for the given binary info.protected voidworked(org.eclipse.core.runtime.IProgressMonitor monitor, int work)
-
Field Details
-
hierarchy
The hierarchy being built. -
nameLookup
- See Also:
-
hierarchyResolver
The resolver used to resolve type hierarchies- See Also:
-
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:
JavaModelExceptionorg.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 and superinterfaces. The superclass and 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.
-