|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jasp.vbs.vbarray
This class implements VBScript Array.
Note: Only supports that the dimensions of an array is less than four.
Constructor Summary | |
vbarray()
Constructs a vbarray without dimension. |
|
vbarray(int d1)
Constructs a one-dimensional vbarray object. |
|
vbarray(int d1,
int d2)
Constructs a two-dimensional vbarray object. |
|
vbarray(int d1,
int d2,
int d3)
Constructs a three-dimensional vbarray object. |
|
vbarray(int d1,
int d2,
int d3,
int d4)
Constructs a four-dimensional vbarray object. |
Method Summary | |
vbarray |
clone_()
Clone this vbarray. |
int |
dimensions()
Returns the number of dimensions in a vbarray. |
variant |
elementAt(int i)
Extracts an element of a one-dimensional vbarray as a variant. |
variant |
elementAt(int i1,
int i2)
Extracts an element of a two-dimensional vbarray as a variant. |
variant |
elementAt(int i1,
int i2,
int i3)
Extracts an element of a three-dimensional vbarray as a variant. |
variant |
elementAt(int i1,
int i2,
int i3,
int i4)
Extracts an element of a four-dimensional vbarray as a variant. |
void |
erase()
Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space. |
int |
getCount()
Gets the number of elements contained in the vbarray. |
variant |
getItem(int index)
Gets the element at the specified index. |
void |
preserve(int a0)
Declares dynamic-array variables, and allocates or reallocates storage space. |
void |
preserve(int a0,
int a1)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. |
void |
preserve(int a0,
int a1,
int a2)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. |
void |
preserve(int a0,
int a1,
int a2,
int a3)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. |
void |
redim(int a0)
Re-Declares dynamic-array variables, and allocates or reallocates storage space. |
void |
redim(int a0,
int a1)
Re-Declares dynamic-array variables, and allocates or reallocates storage space. |
void |
redim(int a0,
int a1,
int a2)
Re-Declares dynamic-array variables, and allocates or reallocates storage space. |
void |
redim(int a0,
int a1,
int a2,
int a3)
Re-Declares dynamic-array variables, and allocates or reallocates storage space. |
void |
setItem(int index,
double va)
Assigns an element of a vbarray. |
void |
setItem(int index,
int va)
Assigns an element of a vbarray. |
void |
setItem(int index,
java.lang.Object va)
Assigns an element of a vbarray. |
void |
setItem(int index,
java.lang.String va)
Assigns an element of a vbarray. |
void |
setItem(int index,
variant va)
Assigns an element of a vbarray. |
void |
setItem(int index,
vbcurrency va)
Assigns an element of a vbarray. |
void |
setItem(int index,
vbdate va)
Assigns an element of a vbarray. |
void |
setObject(int index,
java.lang.Object v)
Sets an element of a vbarray. |
void |
setObject(int index,
variant v)
Sets an element of a vbarray. |
byte[] |
toBytes()
Converts an entire vbarray to a Java array. |
int |
UBound(int i)
Returns the highest index value used in the specified dimension of the vbarray. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public vbarray()
public vbarray(int d1)
d1
- The number of elements.public vbarray(int d1, int d2)
d1
- The number of elements in the first dimension.d2
- The number of elements in the second dimension.public vbarray(int d1, int d2, int d3)
d1
- The number of elements in the first dimension.d2
- The number of elements in the second dimension.d3
- The number of elements in the third dimension.public vbarray(int d1, int d2, int d3, int d4)
d1
- The number of elements in the first dimension.d2
- The number of elements in the second dimension.d3
- The number of elements in the three dimension.d4
- The number of elements in the fourth dimension.Method Detail |
public variant elementAt(int i) throws java.lang.Exception
i
- The element index, which ranges from the index of the lower bound to the index of the
upper bound.public variant elementAt(int i1, int i2) throws java.lang.Exception
i1
- The first dimension index of the element that is extracted, which ranges from 0 to UBound(1).i2
- The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).public variant elementAt(int i1, int i2, int i3) throws java.lang.Exception
i1
- The first dimension index of the element that is extracted, which ranges from 0 to UBound(1).i2
- The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).i3
- The third dimension index of the element that is extracted, which ranges from 0 to UBound(3).public variant elementAt(int i1, int i2, int i3, int i4) throws java.lang.Exception
i1
- The first dimension index of the element that is extracted, which ranges from 0 to UBound(1).i2
- The second dimension index of the element that is extracted, which ranges from 0 to UBound(2).i3
- The third dimension index of the element that is extracted, which ranges from 0 to UBound(3).i4
- The fourth dimension index of the element that is extracted, which ranges from 0 to UBound(4).public int getCount()
public variant getItem(int index) throws java.lang.Exception
index
- The zero-based index.public int UBound(int i) throws java.lang.Exception
i
- The dimension of the vbarray for which the higher bound index is wanted.public void redim(int a0)
a0
- The number of elements.public void redim(int a0, int a1, int a2, int a3)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.a2
- The number of elements in the third dimension.a3
- The number of elements in the fourth dimension.public void redim(int a0, int a1, int a2)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.a2
- The number of elements in the third dimension.public void redim(int a0, int a1)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.public void preserve(int a0)
a0
- The number of elements in the first dimension.public void preserve(int a0, int a1, int a2, int a3)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.a2
- The number of elements in the third dimension.a3
- The number of elements in the four dimension.public void preserve(int a0, int a1, int a2)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.a2
- The number of elements in the third dimension.public void preserve(int a0, int a1)
a0
- The number of elements in the first dimension.a1
- The number of elements in the second dimension.public void erase()
public int dimensions()
public byte[] toBytes() throws java.lang.Exception
public void setItem(int index, variant va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, vbcurrency va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, vbdate va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, int va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, double va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, java.lang.String va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setItem(int index, java.lang.Object va) throws java.lang.Exception
index
- The element index.va
- The new element value.public void setObject(int index, variant v) throws java.lang.Exception
index
- The element index.v
- The new element value.public void setObject(int index, java.lang.Object v) throws java.lang.Exception
index
- The element index.v
- The new element value.public vbarray clone_()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |