|
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.tos.STosJavaClass
public class STosJavaClass
A TOS class implemented as a Java class.
If the Java class has a static method named "getTosClassName()" returning a string then that method will be invoked and its return value will be used as the name of the TOS class.
| Field Summary |
|---|
| Fields inherited from interface com.pdmfc.tea.tos.STosClass |
|---|
CONSTRUCTOR_NAME |
| Constructor Summary | |
|---|---|
STosJavaClass(java.lang.Class javaClass)
|
|
STosJavaClass(java.lang.String javaClassName)
|
|
| 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()
Fetches the member names for this TOS class. |
STosMethod |
getMethod(SObjSymbol methodName)
Fecthes the named method. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public STosJavaClass(java.lang.String javaClassName)
throws SRuntimeException
SRuntimeException
public STosJavaClass(java.lang.Class javaClass)
throws SRuntimeException
SRuntimeException| Method Detail |
|---|
public STosClass getSuperClass()
STosClass
getSuperClass in interface STosClasspublic 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
getMethod in interface STosClassSTosMethod of this TOS class named
methodName.
SNoSuchMethodException - Thrown if there is no name in
this tos class named methodName.public 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 java.lang.String getName()
STosClass
getName in interface STosClass
|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||