Klasse IndexLocation

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
Bekannte direkte Unterklassen:
FileIndexLocation, JarIndexLocation

public abstract class IndexLocation extends Object
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
  • Felddetails

  • Konstruktordetails

    • IndexLocation

      protected IndexLocation(File file)
    • IndexLocation

      public IndexLocation(URL url)
  • Methodendetails

    • createIndexLocation

      public static IndexLocation createIndexLocation(URL url)
    • close

      public void close()
      Closes any open streams.
    • createNewFile

      public abstract boolean createNewFile() throws IOException
      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

      public abstract String fileName()
    • getCanonicalFilePath

      public abstract String getCanonicalFilePath()
      Gibt zurück:
      the canonical file path if the location is a file or null otherwise
    • getIndexFile

      public abstract File getIndexFile()
    • getUrl

      public URL getUrl()
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • 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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object