|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.modules.tos.STosObj
public class 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.
STeaException| 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.obj - The SObjFunction that led to call this function. Most of the
time is the same as the this object.
com.pdmfc.tea.runtime.STException - Only thrown by the execution of the method.
STeaException - Thrown if there were problems executing the command.
|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||