scala.scalajs.tools.classpath.builder

PartialClasspathBuilder

class PartialClasspathBuilder extends AbstractPartialClasspathBuilder with PhysicalFileSystem

Allows to create a PartialClasspathBuilder from a (filesystem) classpath

Rules for classpath reading: - If top-level JS is present, all IR is ignored - Top-level JS goes to scalaJSCode / IR goes to scalaJSIR - If top-level JS is present, a PartialClasspath is created, otherwise a PartialIRClasspath is created - Descends into JARs, no top-level JS in JARs - Entries stay in order of ‘cp‘, IR remains unordered - Earlier IR entries shadow later IR entries with the same relative path - Non-top level JS goes to availableLibs (earlier libs take precedence) - JS_DEPENDENCIES are added to dependencies

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PartialClasspathBuilder
  2. PhysicalFileSystem
  3. AbstractPartialClasspathBuilder
  4. ClasspathElementsTraverser
  5. DirTraverser
  6. JarTraverser
  7. FileSystem
  8. ClasspathContentHandler
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PartialClasspathBuilder()

Type Members

  1. type File = java.io.File

    Definition Classes
    PhysicalFileSystemFileSystem

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def build(cp: collection.immutable.Seq[File]): PartialClasspath

  6. def buildIR(cp: collection.immutable.Seq[File]): PartialIRClasspath

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getAbsolutePath(f: File): String

    A string that uniquely identifies this file's location

    A string that uniquely identifies this file's location

    Definition Classes
    PhysicalFileSystemFileSystem
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getGlobalVersion(f: File): String

    A string that globally identifies the version of a file: If it equals the global version of any other file, they must equal.

    A string that globally identifies the version of a file: If it equals the global version of any other file, they must equal.

    Definition Classes
    FileSystem
  14. def getName(f: File): String

    Definition Classes
    PhysicalFileSystemFileSystem
  15. def getVersion(f: File): String

    A string that identifies the version of a file: If it equals the version of another file with the same absolute path, the two files must be equal.

    A string that identifies the version of a file: If it equals the version of another file with the same absolute path, the two files must be equal. This is usually the lastModified date, but ordering is not required

    Definition Classes
    PhysicalFileSystemFileSystem
  16. def handleDepManifest(m: ⇒ JSDependencyManifest): Unit

    Attributes
    protected
    Definition Classes
    AbstractPartialClasspathBuilderClasspathContentHandler
  17. def handleIR(relPath: String, ir: ⇒ VirtualScalaJSIRFile): Unit

    Attributes
    protected
    Definition Classes
    AbstractPartialClasspathBuilderClasspathContentHandler
  18. def handleJS(js: ⇒ VirtualJSFile): Unit

    Attributes
    protected
    Definition Classes
    AbstractPartialClasspathBuilderClasspathContentHandler
  19. def handleTopLvlJS(js: ⇒ VirtualJSFile): Unit

    Attributes
    protected
    Definition Classes
    AbstractPartialClasspathBuilderClasspathContentHandler
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def isDirectory(f: File): Boolean

    Definition Classes
    PhysicalFileSystemFileSystem
  22. def isFile(f: File): Boolean

    Definition Classes
    PhysicalFileSystemFileSystem
  23. def isIRFile(f: File): Boolean

    Definition Classes
    PhysicalFileSystemFileSystem
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isJARFile(f: File): Boolean

    Definition Classes
    PhysicalFileSystemFileSystem
  26. def isJSFile(f: File): Boolean

    Definition Classes
    PhysicalFileSystemFileSystem
  27. def listFiles(d: File): collection.immutable.Traversable[File]

    List files in a directory

    List files in a directory

    Definition Classes
    PhysicalFileSystemFileSystem
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toIRFile(f: File): VirtualScalaJSIRFile

    Definition Classes
    PhysicalFileSystemFileSystem
  33. def toInputStream(f: File): InputStream

    Definition Classes
    PhysicalFileSystemFileSystem
  34. def toJSFile(f: File): VirtualJSFile

    Definition Classes
    PhysicalFileSystemFileSystem
  35. def toReader(f: File): Reader

    Definition Classes
    PhysicalFileSystemFileSystem
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def traverseClasspathElements(cp: Seq[File]): String

    Attributes
    protected
    Definition Classes
    ClasspathElementsTraverser
  38. def traverseDir(dir: File): String

    Traverses elements, returns a version string

    Traverses elements, returns a version string

    Attributes
    protected
    Definition Classes
    DirTraverser
  39. def traverseJar(jar: File): String

    Traverse a Jar and return a version

    Traverse a Jar and return a version

    Attributes
    protected
    Definition Classes
    JarTraverser
  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PhysicalFileSystem

Inherited from DirTraverser

Inherited from JarTraverser

Inherited from FileSystem

Inherited from ClasspathContentHandler

Inherited from AnyRef

Inherited from Any

Ungrouped