|
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.tos.STosTeaClass
public class STosTeaClass
Represents a TOS class implemented in Tea.
| Field Summary |
|---|
| Fields inherited from interface com.pdmfc.tea.tos.STosClass |
|---|
CONSTRUCTOR_NAME |
| Constructor Summary | |
|---|---|
STosTeaClass(STosClass superClass,
SObjSymbol[] members)
|
|
| Method Summary | |
|---|---|
void |
addMethod(SObjSymbol methodName,
STosMethod method)
Associates a new TOS method with this TOS class. |
STosMethod |
getConstructor()
Fetches the constructor method for this TOS class. |
SObjSymbol[] |
getMemberNames()
Retrieves the member names of this TOS 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 the 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. |
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 |
| Constructor Detail |
|---|
public STosTeaClass(STosClass superClass,
SObjSymbol[] members)
superClass - The TOS base classe for this TOS class. If null
it means this TOS class is a root class.members - The member names for this class.| Method Detail |
|---|
public STosClass getSuperClass()
STosClass object that was passed to the
constructor.
getSuperClass in interface STosClassSTosClass object representing the TOS base
class of this TOS class. If it is null it means this
TOS class has no base class.public SObjSymbol[] getMemberNames()
getMemberNames in interface STosClasspublic void setConstructor(STosMethod method)
setConstructor in interface STosClassmethod - A reference to the SObjFunction object that
implements the TOS method.public STosMethod getConstructor()
STosClass
getConstructor in interface STosClassSTosMethod object corresponding to
the constructor method for this TOS class. The null object is
returned if this TOS class has no constructor.
public void addMethod(SObjSymbol methodName,
STosMethod method)
addMethod in interface STosClassmethodName - A symbol standing for the name of the method
being defined.method - A reference to the SObjFunction object that
implements the TOS method.
public STosMethod getMethod(SObjSymbol methodName)
throws SNoSuchMethodException
STosMethod corresponding to the
specified method for this TOS class. The method is looked for in
this TOS class and in its base classes.
getMethod in interface STosClassSTosMethod object that
implements the specified method.
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.
SNoSuchMethodExceptionpublic java.util.Iterator getMethods()
STosClass
getMethods in interface STosClassjava.util.Iterator containing the all the
STosMethods associated with this TOS class.
public STosObj newInstance(SContext context,
java.lang.Object[] args)
throws STeaException
STosClass
newInstance in interface STosClassSTosObj object, representing a new
instance of this TOS class.
STeaException - Throw if there were any
problems instantiating the new object.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.
getName in interface STosClass
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||