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
FieldsModifier and TypeFieldDescriptionprotected booleanSet 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes any open streams.static IndexLocationcreateIndexLocation(URL url) abstract booleanCreates a new file for the given index locationabstract booleandelete()abstract booleanexists()abstract StringfileName()abstract Fileabstract org.eclipse.core.runtime.PathgetUrl()inthashCode()booleanabstract longabstract longlength()abstract booleanstartsWith(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
-
getIndexPath
public abstract org.eclipse.core.runtime.Path getIndexPath()- Returns:
- the path if the location is a file or null otherwise
-
getIndexFile
-
getUrl
-
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
-