|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.functions.Function
org.millscript.millscript.functions.JMethod
public abstract class JMethod
This class implements a function which invokes a Java method.
| Constructor Summary | |
|---|---|
JMethod(java.lang.reflect.Method m)
Constructs a new JMethod function to invoke the specified
Java method. |
|
| Method Summary | |
|---|---|
void |
apply(Machine mc,
int nargs)
Performs this function using the specified machine, with the specified number of arguments. |
static JMethod |
make(java.lang.reflect.Method method)
Utility method returning a Function to invoke the specified
Java method. |
| Methods inherited from class org.millscript.millscript.functions.Function |
|---|
applyUpdater, checkNargs, checkNargsGT, checkUNargs, getName, modName, reportNargsError, reportNargsGTError, setName, toString, tryClone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JMethod(java.lang.reflect.Method m)
JMethod function to invoke the specified
Java method.
m - the Java method to invoke| Method Detail |
|---|
public void apply(Machine mc,
int nargs)
Function
apply in class Functionmc - the machine to perform this function onnargs - the number of arguments the function is being invoked withFunction.apply(org.millscript.millscript.vm.Machine, int)public static JMethod make(java.lang.reflect.Method method)
Function to invoke the specified
Java method. This method checks the parameter types and modifiers of the
supplied Java method and returns the appropriate JMethod.
method - the method to invoke
Function to invoke the specified method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||