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
FelderModifizierer und TypFeldBeschreibungprotected 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) -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()Closes any open streams.static IndexLocationcreateIndexLocation(URL url) abstract booleanCreates a new file for the given index locationabstract booleandelete()abstract booleanexists()abstract StringfileName()abstract Stringabstract FilegetUrl()inthashCode()booleanabstract longabstract longlength()abstract booleanstartsWith(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
-