Constructor Summary
JavaMethod (java.lang.String methodName,
java.lang.Object targetClassName,
java.lang.Object argClassNames)
Method Summary
java.lang.Object
apply (
Scheme interpreter,
java.lang.Object args)
Apply the method to a list of arguments.
java.lang.Class[]
classArray (java.lang.Object args)
Convert a list of class names into an array of Classes.
java.lang.Object[]
toArray (java.lang.Object args)
Convert a list of Objects into an array.
static java.lang.Class
toClass (java.lang.Object arg)
Methods inherited from class silk.Procedure
Methods inherited from class silk.SchemeUtils
chr,
chr,
cons,
equal,
eqv,
error,
first,
inPort,
length,
list,
list,
listStar,
listToString,
listToVector,
num,
num,
outPort,
rest,
reverse,
second,
setFirst,
setRest,
str,
sym,
third,
truth,
truth,
vec,
vectorToList,
warn,
write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
JavaMethod
public JavaMethod(java.lang.String methodName,
java.lang.Object targetClassName,
java.lang.Object argClassNames)
Method Detail
apply
public java.lang.Object apply(Scheme interpreter,
java.lang.Object args)
- Apply the method to a list of arguments.
- Overrides:
- apply in class Procedure
toClass
public static java.lang.Class toClass(java.lang.Object arg) throws java.lang.ClassNotFoundException
toArray
public java.lang.Object[] toArray(java.lang.Object args)
- Convert a list of Objects into an array. Peek at the argClasses
array to see what's expected. That enables us to convert between
Double and Integer, something Java won't do automatically.
classArray
public java.lang.Class[] classArray(java.lang.Object args) throws java.lang.ClassNotFoundException
- Convert a list of class names into an array of Classes.