Tea Java Runtime API
Version 3.2.4

com.pdmfc.tea.tos
Interface STosClass

All Known Implementing Classes:
STosJavaClass, STosTeaClass

public interface STosClass

Instances of this interface represent TOS classes.


Field Summary
static SObjSymbol CONSTRUCTOR_NAME
           
 
Method Summary
 void addMethod(SObjSymbol methodName, STosMethod method)
           
 STosMethod getConstructor()
          Fetches the constructor method for this TOS class.
 SObjSymbol[] getMemberNames()
          Fetches the member names for this class.
 STosMethod getMethod(SObjSymbol methodName)
          Retrieves the STosMethod corresponding to the specified method for this TOS class.
 java.util.Iterator getMethods()
          Fetches all the methods this TOS class implements.
 java.lang.String getName()
          Fetches the name associated with this TOS class.
 STosClass getSuperClass()
          Retrieves the TOS base class of this TOS class.
 STosObj newInstance(SContext context, java.lang.Object[] args)
          Creates a new instance of an object of this TOS class.
 void setConstructor(STosMethod method)
          Specifies the constructor for this TOS class.
 

Field Detail

CONSTRUCTOR_NAME

static final SObjSymbol CONSTRUCTOR_NAME
Method Detail

getSuperClass

STosClass getSuperClass()
Retrieves the TOS base class of this TOS class.

Returns:
An STosClass object representing the TOS base class of this TOS class. If it is null it means it has no base class.

getMemberNames

SObjSymbol[] getMemberNames()
Fetches the member names for this class. These names do not include the member names of the TOS base class.

Returns:
An array with the member names for this class.

setConstructor

void setConstructor(STosMethod method)
Specifies the constructor for this TOS class.

Parameters:
method - A reference to the STosMethod object that implements this TOS class constructor.

getConstructor

STosMethod getConstructor()
Fetches the constructor method for this TOS class.

Returns:
The STosMethod object corresponding to the constructor method for this TOS class. The null object is returned if this TOS class has no constructor.

addMethod

void addMethod(SObjSymbol methodName,
               STosMethod method)

getMethod

STosMethod getMethod(SObjSymbol methodName)
                     throws SNoSuchMethodException
Retrieves the STosMethod corresponding to the specified method for this TOS class. The method is looked for in this TOS class and in its base classes.

Returns:
The STosMethod object that implements the specified method.
Throws:
com.pdmfc.tea.modules.tos.STosNoSuchMethodException - Thrown if the method had not been defined for this TOS class or in any of the base classes.
SNoSuchMethodException

getMethods

java.util.Iterator getMethods()
Fetches all the methods this TOS class implements. These methods will include all the methods of the base classes.

Returns:
A java.util.Iterator containing the all the STosMethods associated with this TOS class.

newInstance

STosObj newInstance(SContext context,
                    java.lang.Object[] args)
                    throws STeaException
Creates a new instance of an object of this TOS class.

Returns:
A new STosObj object, representing a new instance of this TOS class.
Throws:
STeaException - Throw if there were any problems instantiating the new object.

getName

java.lang.String getName()
Fetches the name associated with this TOS class.

Returns:
The name associated with the class.

Tea Java Runtime API
Version 3.2.4

© 2009 PDM&FC, All Rights Reserved.