Tea Java Runtime API
Version 3.2.5

com.pdmfc.tea.tos
Interface STosObj

All Superinterfaces:
SObjFunction
All Known Implementing Classes:
STosTeaObj

public interface STosObj
extends SObjFunction

Represents an instance of a TOS class.


Method Summary
 SContext getMembers(int level)
          Fetches the members for this TOS object corresponding to a given TOS class in the TOS object class hierarchy.
 STosClass getTosClass()
          Fetches the TOS class this TOS object is an instance of.
 void init(STosClass myClass, SContext context, java.lang.Object[] constructorArgs)
          Initializes the object internal state.
 
Methods inherited from interface com.pdmfc.tea.runtime.SObjFunction
exec
 

Method Detail

init

void init(STosClass myClass,
          SContext context,
          java.lang.Object[] constructorArgs)
          throws STeaException
Initializes the object internal state.

Parameters:
myClass - The TOS class the TOS object belong to.
context - The context where the TOS object is being instantiated.
constructorArgs - The arguments to pass the constructor of this TOS object.
Throws:
STeaException

getTosClass

STosClass getTosClass()
Fetches the TOS class this TOS object is an instance of. This method is supposed to be invoked only after a call to init(...).

Returns:
The STosClass this TOS object is associated with.

getMembers

SContext getMembers(int level)
Fetches the members for this TOS object corresponding to a given TOS class in the TOS object class hierarchy. The returned SContext has no parent.

Parameters:
level - Identifies the TOS class in the TOS object class hierarchy of this TOS object. A value of zero means the root class in the hierarchy.
Returns:
The set of members (names and values) for this object related to a specific TOS class.

Tea Java Runtime API
Version 3.2.5

© 2009 PDM&FC, All Rights Reserved.