Dotty Documentation

0.11.0-bin-SNAPSHOT

class Rendering
extends Object

This rendering object uses ClassLoaders to accomplish crossing the 4th wall (i.e. fetching back values from the compiled class files put into a specific class loader capable of loading from memory) and rendering them.

[-] Constructors

Rendering ( parentClassLoader: Option [ ClassLoader ] )

[-] Members

[+] private var myClassLoader : ClassLoader
[+] private val parentClassLoader : Option [ ClassLoader ]
[+] private def MaxStringElements : Int
[+] private def classLoader ( ) ( implicit ctx: Context ) : ClassLoader

Class loader used to load compiled code

[+] private def renderError ( ex: InvocationTargetException ) : String

Render the stack trace of the underlying exception

[+] def renderMethod ( d: Denotation ) ( implicit ctx: Context ) : String

Render method definition result

[+] def renderVal ( d: Denotation ) ( implicit ctx: Context ) : Option [ String ]

Render value definition result

[+] private def valueOf ( sym: Symbol ) ( implicit ctx: Context ) : Option [ String ]

Load the value of the symbol using reflection.

Calling this method evaluates the expression using reflection