org.aspectj.org.eclipse.jdt.internal.core.index
Class FileIndexLocation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
org.aspectj.org.eclipse.jdt.internal.core.index.FileIndexLocation
public class FileIndexLocation
- extends IndexLocation
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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)
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