org.aspectj.org.eclipse.jdt.internal.core.index
Class FileIndexLocation

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
      extended by org.aspectj.org.eclipse.jdt.internal.core.index.FileIndexLocation

public class FileIndexLocation
extends IndexLocation


Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
participantIndex
 
Constructor Summary
FileIndexLocation(java.io.File file)
           
FileIndexLocation(java.io.File file, boolean participantIndex)
           
FileIndexLocation(java.net.URL url, java.io.File file)
           
 
Method Summary
 boolean createNewFile()
          Creates a new file for the given index location
 boolean delete()
           
 boolean equals(java.lang.Object other)
           
 boolean exists()
           
 java.lang.String fileName()
           
 java.lang.String getCanonicalFilePath()
           
 java.io.File getIndexFile()
           
 int hashCode()
           
 long lastModified()
           
 long length()
           
 boolean startsWith(IPath path)
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
close, createIndexLocation, getUrl, isParticipantIndex, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileIndexLocation

public FileIndexLocation(java.io.File file)

FileIndexLocation

public FileIndexLocation(java.net.URL url,
                         java.io.File file)

FileIndexLocation

public FileIndexLocation(java.io.File file,
                         boolean participantIndex)
Method Detail

createNewFile

public boolean createNewFile()
                      throws java.io.IOException
Description copied from class: IndexLocation
Creates a new file for the given index location

Specified by:
createNewFile in class IndexLocation
Returns:
true if the file is created
Throws:
java.io.IOException

delete

public boolean delete()
Specified by:
delete in class IndexLocation

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

exists

public boolean exists()
Specified by:
exists in class IndexLocation

fileName

public java.lang.String fileName()
Specified by:
fileName in class IndexLocation

getIndexFile

public java.io.File getIndexFile()
Specified by:
getIndexFile in class IndexLocation

getCanonicalFilePath

public java.lang.String getCanonicalFilePath()
Specified by:
getCanonicalFilePath in class IndexLocation
Returns:
the canonical file path if the location is a file or null otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class IndexLocation

lastModified

public long lastModified()
Specified by:
lastModified in class IndexLocation
Returns:
the last modified time if the location is a file or -1 otherwise

length

public long length()
Specified by:
length in class IndexLocation
Returns:
the length of the file if the location is a file or -1 otherwise

startsWith

public boolean startsWith(IPath path)
Specified by:
startsWith in class IndexLocation