ObjectCodeWrapper

scala.build.internal.ObjectCodeWrapper
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

Attributes

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

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def apply(code: String, pkgName: Seq[Name], indexedWrapperName: Name, extraCode: String, scriptPath: String): (String, String)

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def wrapCode(pkgName: Seq[Name], indexedWrapperName: Name, code: String, scriptPath: String): (String, WrapperParams)

Attributes

Inherited from:
CodeWrapper
def wrapperPath: Seq[Name]

Attributes

Inherited from:
CodeWrapper