final class ClassInJar 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"
- Alphabetic
- By Inheritance
- ClassInJar
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClassInJar(toString: String)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def splitJarReference: (File, Option[ClassFilePath])
- def toClassFilePath: Option[ClassFilePath]
- def toClassFilePathOrNull: ClassFilePath
-
def
toFile: File
Wraps the string value inside a java.io.File object.
Wraps the string value inside a java.io.File object. File is needed to e.g. be compatible with
xsbti.compile.analysis.ReadStamps
interface. - def toPath: Path
-
val
toString: String
- Definition Classes
- ClassInJar → Any