scala.build.internal

Members list

Concise view

Type members

Classlikes

object AmmUtil

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
AmmUtil.type
case object ClassCodeWrapper extends CodeWrapper

Script code wrapper that solves problem of deadlocks when using threads. The code is placed in a class instance constructor, the created object is kept in 'mainObjectCode'.script to support running interconnected scripts using Scala CLI

Incompatible with Scala 2 - it uses Scala 3 feature 'export'
Incompatible with native JS members - the wrapper is a class

Script code wrapper that solves problem of deadlocks when using threads. The code is placed in a class instance constructor, the created object is kept in 'mainObjectCode'.script to support running interconnected scripts using Scala CLI

Incompatible with Scala 2 - it uses Scala 3 feature 'export'
Incompatible with native JS members - the wrapper is a class

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class CodeWrapper
class Object
trait Matchable
class Any
Self type

Helper to get class names from Java sources

Helper to get class names from Java sources

See JavaParserProxyJvm for the implementation that runs things in memory using java-class-name from the class path, and JavaParserProxyBinary for the implementation that downloads and runs a java-class-name binary.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JavaParserProxyBinary(archiveCache: ArchiveCache[Task], javaClassNameVersionOpt: Option[String], logger: Logger, javaCommand: () => String) extends JavaParserProxy

Downloads and runs java-class-name as an external binary.

Downloads and runs java-class-name as an external binary.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

A JavaParserProxy that relies on java-class-name in the class path, rather than downloading it and running it as an external binary.

A JavaParserProxy that relies on java-class-name in the class path, rather than downloading it and running it as an external binary.

Should be used from Scala CLI when it's run on the JVM.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

On the JVM, provides JavaParserProxyJvm as JavaParserProxy instance.

On the JVM, provides JavaParserProxyJvm as JavaParserProxy instance.

From native launchers, JavaParserProxyMakerSubst takes over this, and gives JavaParserProxyBinary instead.

That way, no reference to JavaParserProxyJvm remains in the native call graph, and that class and those it pulls (the java-class-name classes, which includes parts of the dotty parser) are not embedded the native launcher.

Note that this is a class and not an object, to make it easier to write substitutions for that in Java.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
object MainClass

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object ObjectCodeWrapper extends CodeWrapper

Script code wrapper compatible with Scala 2 and JS native members

When using Scala 3 or/and not using JS native prefer ClassCodeWrapper, since it prevents deadlocks when running threads from script

Script code wrapper compatible with Scala 2 and JS native members

When using Scala 3 or/and not using JS native prefer ClassCodeWrapper, since it prevents deadlocks when running threads from script

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class CodeWrapper
class Object
trait Matchable
class Any
Self type
object Runner

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Runner.type