Class JavaIndex
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.java.JavaIndex
-
Field Summary
Modifier and TypeFieldDescriptionstatic FieldSearchIndex<NdResourceFile>
static FieldSearchIndex<NdTypeId>
static FieldSearchIndex<NdTypeId>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Nd
createNd(File databaseFile, ChunkCache chunkCache)
createTypeId(char[] fieldDescriptor)
Returns a type ID or creates a new one if it does not exist.void
findResourcesWithPath(String thePath)
findType(char[] fieldDescriptor)
findTypesBySimpleName(char[] query)
findTypesBySimpleName(char[] query, int count)
static int
static Nd
static JavaIndex
getIndex()
static JavaIndex
static org.eclipse.core.runtime.IPath
Returns the absolute filesystem location of the given element or the empty path if nonestatic org.eclipse.core.runtime.IPath
getLocationForPath(org.eclipse.core.runtime.IPath path)
Converts a JDT-style path (which may be a resource-relative path or absolute filesystem location) into a location (which is unconditionally a filesystem location) or null if none.getNd()
getResourceFile(char[] location)
Returns the most-recently-scanned resource file with the given name or null if nonestatic boolean
boolean
isUpToDate(NdResourceFile file)
Returns true iff the given resource file is up-to-date with the filesystem.boolean
visitFieldDescriptorsStartingWith(char[] fieldDescriptorPrefix, FieldSearchIndex.Visitor<NdTypeId> visitor)
-
Field Details
-
FILES
-
SIMPLE_INDEX
-
TYPES
-
type
-
-
Constructor Details
-
JavaIndex
-
-
Method Details
-
getResourceFile
Returns the most-recently-scanned resource file with the given name or null if none -
isUpToDate
Returns true iff the given resource file is up-to-date with the filesystem. Returns false if the argument is null or there is a possibility it being out-of-date with the file system.- Parameters:
file
- the index file to look up or null- Throws:
org.eclipse.core.runtime.CoreException
-
dirty
-
findResourcesWithPath
-
getAllResourceFiles
-
findType
-
findTypesBySimpleName
-
findTypesBySimpleName
-
visitFieldDescriptorsStartingWith
public boolean visitFieldDescriptorsStartingWith(char[] fieldDescriptorPrefix, FieldSearchIndex.Visitor<NdTypeId> visitor) -
createTypeId
Returns a type ID or creates a new one if it does not exist. The caller must attach a reference to it after calling this method or it may leak. -
getNd
-
getLocationForPath
public static org.eclipse.core.runtime.IPath getLocationForPath(org.eclipse.core.runtime.IPath path)Converts a JDT-style path (which may be a resource-relative path or absolute filesystem location) into a location (which is unconditionally a filesystem location) or null if none.The logic used in
getLocationForPath(IPath)
,getLocationForElement(IJavaElement)
, andJavaModelManager.getLocalFile(IPath)
should be equivalent. -
getLocationForElement
Returns the absolute filesystem location of the given element or the empty path if noneThe logic used in
getLocationForPath(IPath)
,getLocationForElement(IJavaElement)
, andJavaModelManager.getLocalFile(IPath)
should be equivalent. -
isEnabled
public static boolean isEnabled()- Returns:
- always return
false
see bug 544898. New index is disabled now.
-
createNd
-
getGlobalNd
-
getIndex
-
getIndex
-
getCurrentVersion
public static int getCurrentVersion()
-