Class Location

    • Field Detail

    • Constructor Detail

      • Location

        public Location​(String descriptor)
        Creates a new location.
        Parameters:
        descriptor - The location descriptor.
    • Method Detail

      • isClassPath

        public boolean isClassPath()
        Checks whether this denotes a location on the classpath.
        Returns:
        true if it does, false if it doesn't.
      • isFileSystem

        public boolean isFileSystem()
        Checks whether this denotes a location on the filesystem.
        Returns:
        true if it does, false if it doesn't.
      • isParentOf

        public boolean isParentOf​(Location other)
        Checks whether this location is a parent of this other location.
        Parameters:
        other - The other location.
        Returns:
        true if it is, false if it isn't.
      • getPrefix

        public String getPrefix()
        Returns:
        The prefix part of the location. Can be either classpath: or filesystem:.
      • getPath

        public String getPath()
        Returns:
        The path part of the location.
      • getDescriptor

        public String getDescriptor()
        Returns:
        The complete location descriptor.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        The complete location descriptor.