|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.modules.tos.STosUtil
public class STosUtil
This class implements some utility methods to be used by derived classes.
| Field Summary | |
|---|---|
static SObjSymbol |
CALLBACK_NAME
The name of variable with the missing function callback action. |
| Constructor Summary | |
|---|---|
STosUtil()
|
|
| Method Summary | |
|---|---|
static STosClass |
getClass(SContext context,
java.lang.Object[] args,
int index)
Retrieves an STosClass object. |
static STosClass |
getClass(SContext context,
SObjSymbol className)
Fetches a class object. |
static STosObj |
getTosObj(java.lang.Object[] args,
int index)
Tries to cast one of the elements in the args array
into an STosObj. |
static STosObj |
newInstance(SObjSymbol className,
SContext context)
|
static STosObj |
newInstance(SObjSymbol className,
SContext context,
java.lang.Object[] constructorArgs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SObjSymbol CALLBACK_NAME
| Constructor Detail |
|---|
public STosUtil()
| Method Detail |
|---|
public static STosObj getTosObj(java.lang.Object[] args,
int index)
throws STypeException
args array
into an STosObj.
args - Array of STObj that is tipically the array
of arguments passed to a Tea function.index - Index into the args array of the element
to fetch.
index position of the
args array.
com.pdmfc.tea.runtime.STTypeException - Throw if the
element at the index position of the args
array is not an STosObj.
STypeException
public static STosClass getClass(SContext context,
java.lang.Object[] args,
int index)
throws STeaException
context - The context where we will look for a variable, if
necessary.args - Array of to a function or method call.index - An index into the args array.
com.pdmfc.tea.modules.tos.STosNoSuchClassException - Thrown if the STosClass object could not be retrieved.
STeaException
public static STosClass getClass(SContext context,
SObjSymbol className)
throws STeaException
context - Context where the class will be searched and its
constructor invoked.className - Symbol identifying the class.
STeaException
public static STosObj newInstance(SObjSymbol className,
SContext context,
java.lang.Object[] constructorArgs)
throws STeaException
STeaException
public static STosObj newInstance(SObjSymbol className,
SContext context)
throws STeaException
STeaException
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||