|
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.STypes
Utility methods for handling Java objects corresponding to Tea basic types.
| Method Summary | |
static SObjBlock |
getBlock(java.lang.Object[] args,
int index)
Tries to convert argument index into a SObjBlock. |
static java.lang.Boolean |
getBoolean(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static java.lang.Double |
getFloat(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static SObjFunction |
getFunction(SContext context,
java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static java.lang.Integer |
getInt(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static java.lang.Number |
getNumber(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static SObjPair |
getPair(java.lang.Object[] args,
int index)
Tries to convert argument index into a SObjPair. |
static java.lang.String |
getString(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static SObjSymbol |
getSymbol(java.lang.Object[] args,
int index)
This is an utility method, to be used by derived classes. |
static java.lang.String |
getTypeName(java.lang.Class aClass)
Retrives a description for the type given as argument. |
static java.lang.String |
getTypeName(java.lang.Object obj)
Retrives a description for the type of the object given as argument. |
static java.lang.Object |
getVarWithEffort(SContext context,
SObjSymbol name)
Invokes a Tea function stored in the "TEA_NOFUNC_CALLBACK" and then tries to retrieve the variable referenced by the symbol name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String getTypeName(java.lang.Object obj)
obj - The object for wich a type description is sought.public static java.lang.String getTypeName(java.lang.Class aClass)
aClass - The type for wich a description is sought.
public static SObjBlock getBlock(java.lang.Object[] args,
int index)
throws STeaException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.STeaException - Thrown if args[index] is not a SObjBlock.
public static SObjPair getPair(java.lang.Object[] args,
int index)
throws STeaException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.STeaException - Thrown if args[index] is not a SObjPair.
public static SObjSymbol getSymbol(java.lang.Object[] args,
int index)
throws STypeException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.com.pdmfc.tea.STypeException - Thrown if
args[index] is not a SObjSymbol.
public static java.lang.Number getNumber(java.lang.Object[] args,
int index)
throws STeaException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.STeaException - Thrown if args[index] is not a SObjNumeric.
public static java.lang.Integer getInt(java.lang.Object[] args,
int index)
throws STypeException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.com.pdmfc.tea.STypeException - Thrown if
args[index] is not an SObjInt.
public static java.lang.Double getFloat(java.lang.Object[] args,
int index)
throws STypeException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.com.pdmfc.tea.STypeException - Thrown if
args[index] is not a SObjFloat.
public static java.lang.Boolean getBoolean(java.lang.Object[] args,
int index)
throws STypeException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.com.pdmfc.tea.STypeException - Thrown if
args[index] is not a java.lang.Boolean.
public static java.lang.String getString(java.lang.Object[] args,
int index)
throws STypeException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.com.pdmfc.tea.STypeException - Thrown if
args[index] is not an SObjString.
public static SObjFunction getFunction(SContext context,
java.lang.Object[] args,
int index)
throws STeaException
args - Array of Object, supposed to be the arguments received by
a call to the command.index - The index of the argument to convert.STeaException - Thrown if args[index] is neither a SObjFunction nor
a SObjSymbol
public static java.lang.Object getVarWithEffort(SContext context,
SObjSymbol name)
throws STeaException
context - The context where the variable will be searched for.name - The symbol referencing the variable we are looking for.SNoSuchVarException - Throw if the
variable does not exit before and after the Tea function is run.
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||