public class JavaIndex
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static FieldSearchIndex<NdResourceFile> |
FILES |
static FieldSearchIndex<NdMethodId> |
METHODS |
static FieldSearchIndex<NdTypeId> |
SIMPLE_INDEX |
static StructDef<JavaIndex> |
type |
static FieldSearchIndex<NdTypeId> |
TYPES |
| Modifier and Type | Method and Description |
|---|---|
NdMethodId |
createMethodId(char[] methodId) |
static Nd |
createNd(java.io.File databaseFile,
ChunkCache chunkCache) |
NdTypeId |
createTypeId(char[] fieldDescriptor)
Returns a type ID or creates a new one if it does not exist.
|
NdMethodId |
findMethodId(char[] methodId) |
java.util.List<NdResourceFile> |
findResourcesWithPath(java.lang.String thePath) |
NdTypeId |
findType(char[] fieldDescriptor) |
java.util.List<NdResourceFile> |
getAllResourceFiles() |
static int |
getCurrentVersion() |
static Nd |
getGlobalNd() |
static JavaIndex |
getIndex() |
static JavaIndex |
getIndex(Nd nd) |
static IPath |
getLocationForElement(IJavaElement next)
Returns the absolute filesystem location of the given element or null if none
|
Nd |
getNd() |
NdResourceFile |
getResourceFile(char[] location)
Returns the most-recently-scanned resource file with the given name or null if none
|
static boolean |
isEnabled() |
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) |
public static final FieldSearchIndex<NdResourceFile> FILES
public static final FieldSearchIndex<NdTypeId> SIMPLE_INDEX
public static final FieldSearchIndex<NdTypeId> TYPES
public static final FieldSearchIndex<NdMethodId> METHODS
public JavaIndex(Nd dom, long address)
public NdResourceFile getResourceFile(char[] location)
public boolean isUpToDate(NdResourceFile file) throws CoreException
file - the index file to look up or nullCoreExceptionpublic java.util.List<NdResourceFile> findResourcesWithPath(java.lang.String thePath)
public java.util.List<NdResourceFile> getAllResourceFiles()
public NdTypeId findType(char[] fieldDescriptor)
public boolean visitFieldDescriptorsStartingWith(char[] fieldDescriptorPrefix,
FieldSearchIndex.Visitor<NdTypeId> visitor)
public NdTypeId createTypeId(char[] fieldDescriptor)
public Nd getNd()
public NdMethodId findMethodId(char[] methodId)
public NdMethodId createMethodId(char[] methodId)
public static IPath getLocationForElement(IJavaElement next)
public static boolean isEnabled()
public static Nd createNd(java.io.File databaseFile, ChunkCache chunkCache)
public static Nd getGlobalNd()
public static JavaIndex getIndex()
public static int getCurrentVersion()