Class IndexLocation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
- Direct Known Subclasses:
FileIndexLocation
,JarIndexLocation
The location of the index files are represented as
IndexLocation
This is an abstract class to allow different implementation for a jar entry and a file
on the disk. Some of these functions could mean different for a jar entry or a file-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Set to true if this index location is of an index file specified by a participant throughSearchParticipant.scheduleDocumentIndexing(org.aspectj.org.eclipse.jdt.core.search.SearchDocument, org.eclipse.core.runtime.IPath)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes any open streams.static IndexLocation
createIndexLocation(URL url)
abstract boolean
Creates a new file for the given index locationabstract boolean
delete()
abstract boolean
exists()
abstract String
fileName()
abstract String
abstract File
getUrl()
int
hashCode()
boolean
abstract long
abstract long
length()
abstract boolean
startsWith(org.eclipse.core.runtime.IPath path)
toString()
-
Field Details
-
participantIndex
protected boolean participantIndexSet to true if this index location is of an index file specified by a participant throughSearchParticipant.scheduleDocumentIndexing(org.aspectj.org.eclipse.jdt.core.search.SearchDocument, org.eclipse.core.runtime.IPath)
-
-
Constructor Details
-
IndexLocation
-
IndexLocation
-
-
Method Details
-
createIndexLocation
-
close
public void close()Closes any open streams. -
createNewFile
Creates a new file for the given index location- Returns:
- true if the file is created
- Throws:
IOException
-
delete
public abstract boolean delete() -
exists
public abstract boolean exists() -
fileName
-
getCanonicalFilePath
- Returns:
- the canonical file path if the location is a file or null otherwise
-
getIndexFile
-
getUrl
-
hashCode
public int hashCode() -
isParticipantIndex
public boolean isParticipantIndex() -
lastModified
public abstract long lastModified()- Returns:
- the last modified time if the location is a file or -1 otherwise
-
length
public abstract long length()- Returns:
- the length of the file if the location is a file or -1 otherwise
-
startsWith
public abstract boolean startsWith(org.eclipse.core.runtime.IPath path) -
toString
-