|
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.STosObj
com.pdmfc.tea.modules.util.SVector
public class SVector
Represents a TOS object acting like a vector. The elements are
actually stored in an underlying java.util.List. This
java.util.List can either be internally created or
supplied from the outside.
| Constructor Summary | |
|---|---|
SVector(STosClass myClass)
Initializes the object internal state. |
|
| Method Summary | |
|---|---|
java.lang.Object |
append(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "append" TOS method. |
java.lang.Object |
clear(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "clear" TOS method. |
java.lang.Object |
constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "constructor" TOS method. |
java.lang.Object |
getAt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getAt" TOS method. |
java.lang.Object |
getElements(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getElements" TOS method. |
java.util.List |
getInternalList()
Fetches the java.util.List used to store the vector
elements. |
java.lang.Object |
getSize(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "getSize" TOS method. |
static java.lang.String |
getTosClassName()
Retrieves the recomended name for the TOS class. |
java.lang.Object |
init(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "init" TOS method. |
static SVector |
newInstance(SContext context)
Creates a TOS TVector instance. |
static SVector |
newInstance(SContext context,
java.util.List contents)
Creates a TOS TVector instance and supplies the
java.util.List used to store the vector elements. |
java.lang.Object |
pop(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "pop" TOS method. |
java.lang.Object |
push(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "push" TOS method. |
java.lang.Object |
resize(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "resize" TOS method. |
java.lang.Object |
setAt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "setAt" TOS method. |
java.lang.Object |
sort(SObjFunction obj,
SContext context,
java.lang.Object[] args)
The implementation for the "sort" TOS method. |
| Methods inherited from class com.pdmfc.tea.modules.tos.STosObj |
|---|
exec, getTosClass, init, part, selfObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVector(STosClass myClass)
throws STeaException
SVector instances.
myClass - The TOS class to assign to the TOS objects.
STeaException| Method Detail |
|---|
public java.util.List getInternalList()
java.util.List used to store the vector
elements. This java.util.List may be modified at
will. Nevertheless, concurrent use from within multiple threads
must be avoided.
java.util.List used to store the vector
elements.
public java.lang.Object constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object push(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object append(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object init(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object getSize(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object resize(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object getAt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object setAt(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object getElements(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object pop(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
SRuntimeException
public java.lang.Object clear(SObjFunction obj,
SContext context,
java.lang.Object[] args)
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
public java.lang.Object sort(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
obj - Reference to the object the TOS method was invoked for.context - The context where the method invocation is taking
place.args - The arguments the TOS method was called with.
STeaExceptionpublic static java.lang.String getTosClassName()
public static SVector newInstance(SContext context)
throws STeaException
TVector instance. The
context is used to retrieve the TOS class object to
assign to the TVector.
The internal java.util.List where the vector
elements will be stored is automatically created.
context - The context where the TVector instance
is being created.
SVector.
STeaException
public static SVector newInstance(SContext context,
java.util.List contents)
throws STeaException
TVector instance and supplies the
java.util.List used to store the vector elements.
context - The context where the TVector instance
is being created.contents - The java.util.List that will be used
to store the vector elements.
SVector.
STeaException
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||