in scala/mobile
class Code
-
class Code(clazz: Class)
- extends Object
- with ScalaObject
-
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);
- Author:
-
Stephane Micheloud
- Version:
-
1.0, 04/05/2004
- See Also:
-
Location
Method Summary
|
|
def apply[R](funName: String): () => R
|
|
def apply[A0,R](funName: String): (A0) => R
|
|
def apply[A0,A1,R](funName: String): (A0,A1) => R
|
|
def apply[A0,A1,A2,R](funName: String): (A0,A1,A2) => R
|
|
def apply[A0,A1,A2,A3,R](funName: String): (A0,A1,A2,A3) => R
|
|
def apply[A0,A1,A2,A3,A4,R](funName: String): (A0,A1,A2,A3,A4) => R
|
|
def apply[A0,A1,A2,A3,A4,A5,R](funName: String): (A0,A1,A2,A3,A4,A5) => R
|
|
def apply[A0,A1,A2,A3,A4,A5,A6,R](funName: String): (A0,A1,A2,A3,A4,A5,A6) => R
|
|
def apply[A0,A1,A2,A3,A4,A5,A6,A7,R](funName: String): (A0,A1,A2,A3,A4,A5,A6,A7) => R
|
|
def apply[A0,A1,A2,A3,A4,A5,A6,A7,A8,R](funName: String): (A0,A1,A2,A3,A4,A5,A6,A7,A8) => R
|
Methods inherited from java/lang/Object-class
|
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, toString, wait, wait, wait |
apply
def apply[R](funName: String): () => R
apply
def apply[A0,R](funName: String): (A0) => R
apply
def apply[A0,A1,R](funName: String): (A0,A1) => R
apply
def apply[A0,A1,A2,R](funName: String): (A0,A1,A2) => R
apply
def apply[A0,A1,A2,A3,R](funName: String): (A0,A1,A2,A3) => R
apply
def apply[A0,A1,A2,A3,A4,R](funName: String): (A0,A1,A2,A3,A4) => R
apply
def apply[A0,A1,A2,A3,A4,A5,R](funName: String): (A0,A1,A2,A3,A4,A5) => R
apply
def apply[A0,A1,A2,A3,A4,A5,A6,R](funName: String): (A0,A1,A2,A3,A4,A5,A6) => R
apply
def apply[A0,A1,A2,A3,A4,A5,A6,A7,R](funName: String): (A0,A1,A2,A3,A4,A5,A6,A7) => R
apply
def apply[A0,A1,A2,A3,A4,A5,A6,A7,A8,R](funName: String): (A0,A1,A2,A3,A4,A5,A6,A7,A8) => R