|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.pdmfc.tea.runtime.SJavaFunction
A Tea function implemented as a Java method.
| Method Summary | |
java.lang.Object |
exec(SObjFunction obj,
SContext context,
java.lang.Object[] args)
Executes the command. |
static SObjFunction |
newFunction(java.lang.Class javaClass,
java.lang.String javaMethodName)
Creates a Tea function implemented as a Java class method. |
static SObjFunction |
newFunction(java.lang.Object target,
java.lang.String javaMethodName)
Creates a Tea function implemented as a Java instance method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SObjFunction newFunction(java.lang.Object target,
java.lang.String javaMethodName)
javaMethodName will be invoked on the object
referenced by targe.target - The object that will have its
javaMethodName method invoked when the Tea function is
executed.javaMethodName - The name of the java method to call on the
target object when the Tea function is executed.javaMethodName method on the
target object.
public static SObjFunction newFunction(java.lang.Class javaClass,
java.lang.String javaMethodName)
javaMethodName will be invoked on
javaClass class.javaClass - The Java class object that will have its static
javaMethodName method invoked when the Tea function is
executed.javaMethodName - The name of the static Java method to call on the
javaClass class when the Tea function is executed.javaMethodName static method on the
javaClass class.
public java.lang.Object exec(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
SObjFunctionexec in interface SObjFunctioncom.pdmfc.tea.runtime.SObjFunctionfunc - The SObjFunction that led to call this function. Most of the
time is the same as the this object.context - The context where the command should be executed.args - Array with the arguments passed to the command.STeaException - Thrown if there were problems executing the command.
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||