Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class silk.JavaMethod

java.lang.Object
 |
 +----silk.SchemeUtils
 |
 +----silk.Procedure
 |
 +----silk.JavaMethod

public class JavaMethod
extends Procedure

Fields inherited from class silk.SchemeUtils

FALSE , ONE , TRUE , ZERO

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
apply, toString
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.

Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

AltStyle によって変換されたページ (->オリジナル) /