|
Scala
1.4.0.3 |
|||
Object Summary | |
object Location
The object Location can be used to instantiate
objects on the same Java VM.
|
Class Summary | |
class Code(clazz: Class)
The class Code provides apply methods
with different arities (actually up to 9 parameters) to invoke
a function simply by specifying its name and argument types.
Example:val url = new URL("http://scala.epfl.ch/classes/examples.jar"); val obj = new Location(url) create "examples.sort"; val ar = Array(6, 2, 8, 5, 1); obj[Array[Int], Unit]("println")(ar); obj[Array[Int], Unit]("sort")(ar); obj[Array[Int], Unit]("println")(ar); |
|
class Location(url: java.net.URL)
The class Location provides a create
method to instantiate objects from a network location by
specifying the URL address of the jar/class file.
An update of the jar/class file should not break your code as far
as the used class names and method signatures are the same.
Example:val url = new URL("http://scala.epfl.ch/classes/examples.jar"); val obj = new Location(url) create "examples.sort"; |
|
Scala
1.4.0.3 |
|||