|
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.modules.tos.STosObj
This class implements a Tea command that behaves like an TOS object.
| Constructor Summary | |
STosObj(STosClass theClass)
Initializes a new TOS object. |
|
| Method Summary | |
java.lang.Object |
exec(SObjFunction obj,
SContext context,
java.lang.Object[] args)
This is the dispatch method. |
STosClass |
getTosClass()
Retrieves the class object this TOS object is an instance of. |
void |
init(SContext context,
java.lang.Object[] args)
|
STosObj |
part(int level)
Retrieves the part of this TOS object at level level. |
STosObj |
selfObj()
Retrieves the TOS object this object is part of. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public STosObj(STosClass theClass)
throws STeaException
The creation of an TOS object is done in two steps. First the object is instantiated. Then it is initialized with a call to the init() method.
theClass - The TOS class of the TOS object represented by this Java object.| Method Detail |
public void init(SContext context,
java.lang.Object[] args)
throws STeaException
context - The context where the constructor was called.args - The arguments to the constructor.STeaException - Only thrown by the call to the constructor method.public STosObj selfObj()
public STosObj part(int level)
level.level - The index of the part to retrieve.level.public STosClass getTosClass()
STosClass object this TOS object
is an instance of.
public java.lang.Object exec(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
A TOS method is implemented by an STosMethod object.
exec in interface SObjFunctioncontext - The context inside which this command was invoked.args - The array of arguments passed to the command.com.pdmfc.tea.runtime.STException - Only thrown by the execution of the method.
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||