Code

trait Code extends Product with Writable
Companion
object
trait Writable
trait Product
trait Equals
class Object
trait Matchable
class Any
class Action
class Control
class Proc
class Code

Type members

Types

type In

The interfacing input type

The interfacing input type

type Out

The interfacing output type

The interfacing output type

type Self = T[In, Out]

Value members

Abstract methods

def compileBody()(implicit compiler: Compiler): Future[Unit]

Compiles the code body without executing it.

Compiles the code body without executing it.

def execute(in: In)(implicit compiler: Compiler): Out

Compiles and executes the code. Returns the wrapped result.

Compiles and executes the code. Returns the wrapped result.

def postlude: String

Source code postlude wrapping code, containing for example closing braces. Should generally begin and end in a newline.

Source code postlude wrapping code, containing for example closing braces. Should generally begin and end in a newline.

def prelude: String

Generic source code prelude wrapping code, containing package, class or object. Should generally end in a newline.

Generic source code prelude wrapping code, containing package, class or object. Should generally end in a newline.

Must not include Code.packagePrelude. Must not include imports as retrieved by Code.importsPrelude.

def source: String

Source code.

Source code.

def tpe: Type
def updateSource(newText: String): Self

Creates a new code object with updated source code.

Creates a new code object with updated source code.

Concrete methods

def write(out: DataOutput): Unit

Inherited methods

def canEqual(that: Any): Boolean
Inherited from
Equals
def productArity: Int
Inherited from
Product
def productElement(n: Int): Any
Inherited from
Product
def productElementName(n: Int): String
Inherited from
Product
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def productPrefix: String
Inherited from
Product