Scala 2.6.0-final

API Specification

This document is the API specification for Scala Library Documentation

Class Summary
class Code (clazz : Class) extends AnyRef
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-lang.org/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 : URL) extends AnyRef
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-lang.org/classes/examples.jar");
    val obj = new Location(url) create "examples.sort";
Object Summary
object Location extends Location
The object Location can be used to instantiate objects on the same Java VM. It is just provided to illustrate the special case where resources are available locally.

Example:

    val obj = Location.create("xcode.Math");
    val x = obj[Int, Int]("square")(5);