ClassInJar

sbt.internal.inc.JarUtils.ClassInJar
See theClassInJar companion object
final class ClassInJar(val toString: String) extends AnyVal

ClassInJar is an identifier for a class located inside a jar. For plain class files it is enough to simply use the actual file system path. A class in a jar is identified as a path to the jar and path to the class within that jar (RelClass). Those two values are held in one string separated by !. Slashes in both paths are consistent with File.separatorChar as the actual string is usually kept in File object.

As an example: given a jar file "C:\develop\zinc\target\output.jar" and a relative path to the class "sbt/internal/inc/Compile.class" The resulting identifier would be: "C:\develop\zinc\target\output.jar!sbt\internal\inc\Compile.class"

Attributes

Companion
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def splitJarReference: (File, Option[ClassFilePath])
def toFile: File

Wraps the string value inside a java.io.File object. File is needed to e.g. be compatible with xsbti.compile.analysis.ReadStamps interface.

Wraps the string value inside a java.io.File object. File is needed to e.g. be compatible with xsbti.compile.analysis.ReadStamps interface.

Attributes

def toPath: Path

Concrete fields

override val toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.