|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.modules.tos.STosClass
public class STosClass
This class implements a TOS class.
| Field Summary | |
|---|---|
static SObjSymbol |
_constructName
|
| Constructor Summary | |
|---|---|
STosClass()
Defines a new TOS class with no base class and with no members. |
|
STosClass(SList members)
Defines a new TOS class with no base class. |
|
STosClass(STosClass superClass)
Defines a new TOS class with no members. |
|
STosClass(STosClass superClass,
SList members)
Defines a new TOS class. |
|
| Method Summary | |
|---|---|
void |
addConstructor(SObjFunction method)
Associates a constructor with this TOS class. |
void |
addMethod(SObjSymbol methodName,
SObjFunction method)
Associates a new TOS method with this TOS class. |
void |
addMethod(java.lang.String methodName,
SObjFunction method)
Associates a new TOS method with this TOS class. |
SObjFunction |
getConstructor()
Retrieves the STObjProc object that implements the constructor for this TOS class. |
SObjFunction |
getMethod(SObjSymbol methodName)
Retrieves the SObjFunction object that implements the method referenced by the symbol methodName. |
java.lang.String |
getName()
Fetches the name associated with the class. |
STosClass |
getSuperClass()
Retrieves the TOS base class of this TOS class. |
int |
level()
Retrieves the level of the TOS class definition down the hierarchy. |
SList |
memberNames()
Retrieves the member names of this TOS class. |
STosObj |
newInstance()
Creates a new instance of an object of this TOS class, but does not initialize the object. |
STosObj |
newInstance(SContext context,
java.lang.Object[] args)
Creates a new instance of an object of this TOS class. |
void |
setName(java.lang.String name)
Associates a name with the class object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SObjSymbol _constructName
| Constructor Detail |
|---|
public STosClass(STosClass superClass,
SList members)
superClass - The base class of the class being defined. If it is null
it means the class being defined has no base class.members - Array with the member names. It must be a Vector of
SObjSymbol objects.public STosClass(SList members)
members - Array with the member names. It must be a Vector of
SObjSymbol objects.
com.pdmfc.tea.modules.tos.STosNoSuchClassException - Never thrown.public STosClass(STosClass superClass)
superClass - The base class of the class being defined. If it is null
it means the class being defined has no base class.public STosClass()
| Method Detail |
|---|
public STosClass getSuperClass()
public SList memberNames()
public int level()
public STosObj newInstance()
throws STeaException
STeaException - Not throws by this method. Only declared
for derived classes that reimplement this method.
public STosObj newInstance(SContext context,
java.lang.Object[] args)
throws STeaException
args - Array of argumens to be passed to the constructor. The first element
in the array is not used. The second element should be a symbol
with the class name of the object being instantiated.
STeaException
public void addMethod(SObjSymbol methodName,
SObjFunction method)
methodName - A symbol standing for the name of the method being defined.method - A reference to the SObjFunction object that implements the
TOS method.
public void addMethod(java.lang.String methodName,
SObjFunction method)
The constructor for the object is a method with the same name as the class.
methodName - A symbol standing for the name of the method being defined.method - A reference to the SObjFunction object that implements the
TOS method.public void addConstructor(SObjFunction method)
method - A reference to the SObjFunction
object that implements the constructor.
public SObjFunction getMethod(SObjSymbol methodName)
throws SNoSuchMethodException
com.pdmfc.tea.modules.tos.STosNoSuchMethodException - Thrown if the method had not been defined for this class.
SNoSuchMethodExceptionpublic SObjFunction getConstructor()
The constructor is just a method with the same name as the TOS class.
public void setName(java.lang.String name)
name - The name that will be associated with the class.public java.lang.String getName()
setName<(String) method.
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||