public class IndexBasedHierarchyBuilder extends HierarchyBuilder implements SuffixConstants
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
binariesFromIndexMatches
Cache used to record binaries recreated from index matches
|
protected java.util.Map |
cuToHandle
A temporary cache of compilation units 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).
|
static int |
MAXTICKS |
protected IJavaSearchScope |
scope
The scope this hierarchy builder should restrain results to.
|
focusQualifiedName, hierarchy, hierarchyResolver, infoToHandle, nameLookupEXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
IndexBasedHierarchyBuilder(TypeHierarchy hierarchy,
IJavaSearchScope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
build(boolean computeSubtypes) |
protected ICompilationUnit |
createCompilationUnitFromPath(Openable handle,
IFile file)
Create an ICompilationUnit info from the given compilation unit on disk.
|
protected IBinaryType |
createInfoFromClassFile(Openable classFile,
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.
|
static void |
searchAllPossibleSubTypes(IType type,
IJavaSearchScope scope,
java.util.Map binariesFromIndexMatches,
IPathRequestor pathRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Find the set of candidate subtypes of a given type.
|
buildSupertypes, connect, getHandle, getType, lookupBinaryHandle, workedpublic static final int MAXTICKS
protected java.util.Map cuToHandle
protected IJavaSearchScope scope
protected java.util.Map binariesFromIndexMatches
public IndexBasedHierarchyBuilder(TypeHierarchy hierarchy, IJavaSearchScope scope) throws JavaModelException
JavaModelExceptionpublic void build(boolean computeSubtypes)
build in class HierarchyBuilderprotected ICompilationUnit createCompilationUnitFromPath(Openable handle, IFile file)
HierarchyBuildercreateCompilationUnitFromPath in class HierarchyBuilderprotected IBinaryType createInfoFromClassFile(Openable classFile, IResource file)
HierarchyBuildercreateInfoFromClassFile in class HierarchyBuilderprotected IBinaryType createInfoFromClassFileInJar(Openable classFile)
HierarchyBuildercreateInfoFromClassFileInJar in class HierarchyBuilderpublic static void searchAllPossibleSubTypes(IType type, IJavaSearchScope scope, java.util.Map binariesFromIndexMatches, IPathRequestor pathRequestor, int waitingPolicy, IProgressMonitor progressMonitor)
type - scope - binariesFromIndexMatches - pathRequestor - waitingPolicy - progressMonitor -