Klasse IndexLocation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
- Bekannte direkte Unterklassen:
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-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected 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)
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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()
-
Felddetails
-
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)
-
-
Konstruktordetails
-
IndexLocation
-
IndexLocation
-
-
Methodendetails
-
createIndexLocation
-
close
public void close()Closes any open streams. -
createNewFile
Creates a new file for the given index location- Gibt zurück:
- true if the file is created
- Löst aus:
IOException
-
delete
public abstract boolean delete() -
exists
public abstract boolean exists() -
fileName
-
getCanonicalFilePath
- Gibt zurück:
- 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()- Gibt zurück:
- the last modified time if the location is a file or -1 otherwise
-
length
public abstract long length()- Gibt zurück:
- 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
-