|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jasp.vbs.variant
This class implements VBScript Variant type.
Field Summary | |
static int |
ASPIStringList
Contains an ASPIStringList object. |
static int |
DEFAULT_PARARM
Represents a missing optional parameter. |
static int |
Error
Contains an error. |
static int |
vbArray
Contains a vbarray. |
static int |
vbBoolean
Contains a boolean value. |
static int |
vbByte
Contains integer in the range 0 to 255. |
static int |
vbCurrency
Contains a currency in the range -922,337,203,685,477.5808 to 922,337,203,685,477.5807. |
static int |
vbDate
Contains a number that represents a date between January 1, 100 to December 31, 9999. |
static int |
vbDouble
Contains a double-precision, floating-point number in the range -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values. |
static int |
vbEmpty
Variant is uninitialized. |
static int |
vbInteger
Contains integer in the range -32,768 to 32,767. |
static int |
vbLong
Contains integer in the range -2,147,483,648 to 2,147,483,647. |
static int |
vbNull
Variant intentionally contains no valid data. |
static int |
vbObject
Contains an object. |
static int |
vbSingle
Contains a single-precision, floating-point number in the range -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values. |
static int |
vbString
Contains a variable-length string that can be up to approximately 2 billion characters in length. |
static int |
vbVariant
Contains an variant (used only with arrays of Variants). |
Constructor Summary | |
variant()
Constructs a variant object of type vbEmpty. |
|
variant(boolean value)
Constructs a variant object of type vbBoolean. |
|
variant(byte value)
Constructs a variant object of type vbByte. |
|
variant(Collection is)
Constructs a variant object of type ASPIStringList. |
|
variant(double value)
Constructs a variant object of type vbDouble. |
|
variant(float value)
Constructs a variant object of type vbSingle. |
|
variant(int value)
Constructs a variant object of type vbLong. |
|
variant(int type,
java.lang.Object value)
Constructs a variant object of the type indicated the type argument. |
|
variant(long value)
Constructs a variant object of type Java's Long. |
|
variant(java.lang.Object value)
Constructs a variant object of type vbObject. |
|
variant(short value)
Constructs a variant object of type vbInteger. |
|
variant(java.lang.String value)
Constructs a variant object of type vbString. |
|
variant(vbarray array)
Constructs a variant object of type vbARRAY. |
|
variant(vbcurrency value)
Constructs a variant object of type vbCurrency. |
|
variant(vbdate d)
Constructs a variant object of type vbDate. |
Method Summary | |
variant |
add(variant b)
Sums two variants. |
variant |
clone_()
clone a variant. |
variant |
defParm()
Sets a variant object to represent a missing optional parameter. |
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. |
boolean |
equals(variant a)
Compares two varaints. |
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. |
java.lang.String |
getDblValue()
Gets the value of a String that contains the double value. |
variant |
getItem(int index)
Gets the element at the specified index from vbarray or Collection. |
variant |
getItem(java.lang.String index)
Gets the element at the specified name from Collection. |
variant |
getItem(variant index)
Gets the element at the specified index from vbarray or Collection. |
java.lang.Object |
getObj()
Gets the value of a vbObject variant. |
int |
getType()
Gets the type of the variant object. |
java.lang.String |
getTypeName()
Gets the type name of the variant. |
boolean |
Greater(variant a)
Compares two varaints. |
boolean |
GreaterEQ(variant a)
Compares two varaints. |
boolean |
Less(variant a)
Compares two varaints. |
boolean |
LessEQ(variant a)
Compares two varaints. |
void |
preserve(int a0)
Declares dynamic-array variables, and allocates or reallocates storage space at procedure level. |
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 |
set_SafeArray(vbarray v)
Sets variant to type vbArray. |
void |
set(boolean b)
Assigns the variant object to type vbBoolean and clears the previous contents. |
void |
set(byte b)
Assigns the variant object to type vbByte and clears the previous contents. |
void |
set(Collection d)
Assigns the variant object to type ASPStringList and clears the previous contents. |
void |
set(double d)
Assigns the variant object to type vbDouble and clears the previous contents. |
void |
set(int i)
Assigns the variant object to type vbLong and clears the previous contents. |
void |
set(java.lang.Object o)
Assigns the variant object to type vbObject and clears the previous contents. |
void |
set(java.lang.String str)
Assigns the variant object to type vbString and clears the previous contents. |
void |
set(variant d)
Assigns the variant object to type vbVariant and clears the previous contents. |
void |
set(vbarray d)
Assigns the variant object to type vbArray and clears the previous contents. |
void |
set(vbcurrency c)
Assigns the variant object to type vbCurrency and clears the previous contents. |
void |
set(vbdate d)
Assigns the variant object to type vbDate and clears the previous contents. |
void |
setItem(int index,
double va)
Assigns an element of vbarray or Collection. |
void |
setItem(int index,
int va)
Assigns an element of vbarray or Collection. |
void |
setItem(int index,
java.lang.Object va)
Assigns an element of vbarray or Collection. |
void |
setItem(int index,
java.lang.String va)
Assigns an element of vbarray or Collection. |
void |
setItem(int index,
variant va)
Assigns an element of vbarray or collection. |
void |
setItem(int index,
vbcurrency va)
Assigns an element of vbarray or Collection. |
void |
setItem(int index,
vbdate va)
Assigns an element of vbarray or Collection. |
void |
setItem(java.lang.String index,
double va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
int va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
java.lang.Object va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
java.lang.String va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
variant va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
vbcurrency va)
Assigns an element of Collection. |
void |
setItem(java.lang.String index,
vbdate va)
Assigns an element of Collection. |
void |
setItem(variant index,
double va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
int va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
java.lang.Object va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
java.lang.String va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
variant va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
vbcurrency va)
Assigns an element of vbarray or Collection. |
void |
setItem(variant index,
vbdate va)
Assigns an element of vbarray or Collection. |
void |
setNull()
Assigns the variant object to type vbNull and clears the previous contents. |
void |
setObject(int index,
java.lang.Object v)
Sets an element of vbarray. |
void |
setObject(int index,
variant v)
Sets an element of vbarray. |
void |
setObject(java.lang.Object obj)
Sets the variant object to type vbObject and clears the previous contents. |
void |
setObject(variant v)
Sets the variant object to type vbVariant and clears the previous contents. |
boolean |
toBool()
Converts the variant object to a Java boolean and returns the result. |
vbcurrency |
toCurr()
Converts the variant object to a vbcurrency and returns the result. |
vbdate |
toDate()
Convert the variant object to a vbDate. |
double |
toDouble()
Converts the variant object to a Java double and returns the result. |
int |
toInt()
Converts the variant object to a Java integer and returns the result. |
java.lang.Object |
toObject()
Converts the variant to a Java Object and returns the result. |
short |
toShort()
Converts the variant object to a Java short and returns the result. |
java.lang.String |
toString()
Converts the Variant object to a vbString and returns the result. |
int |
UBound(int i)
Returns the largest available subscript for the indicated dimension of an array. |
boolean |
unequals(variant a)
Compares two varaints. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int vbEmpty
public static final int vbNull
public static final int vbInteger
public static final int vbLong
public static final int vbSingle
public static final int vbDouble
public static final int vbCurrency
public static final int vbDate
public static final int vbString
public static final int vbObject
public static final int Error
public static final int vbBoolean
public static final int vbVariant
public static final int vbByte
public static final int ASPIStringList
public static final int DEFAULT_PARARM
public static final int vbArray
Constructor Detail |
public variant()
public variant(vbarray array)
array
- The vbarray value.public variant(Collection is)
the
- argument is the J-ASP Collection value.public variant(boolean value)
value
- The initial value.public variant(int value)
value
- The initial value.public variant(byte value)
value
- The initial value.public variant(short value)
value
- The initial value.public variant(float value)
value
- The initial value.public variant(java.lang.String value)
value
- The initial value.public variant(vbcurrency value)
value
- The initial value.public variant(java.lang.Object value)
value
- The initial value.public variant(vbdate d)
value
- The initial value.public variant(double value)
value
- The initial value.public variant(long value)
value
- The initial value.public variant(int type, java.lang.Object value)
type
- the variant type.value
- The initial value.Method Detail |
public vbdate toDate() throws java.lang.Exception
public vbcurrency toCurr() throws java.lang.Exception
public java.lang.Object toObject() throws java.lang.Exception
public int toInt() throws java.lang.Exception
public short toShort() throws java.lang.Exception
public double toDouble() throws java.lang.Exception
public boolean toBool()
public void set(int i)
i
- The new value.public void set(double d)
d
- The new value.public void set(byte b)
b
- The new value.public void set(boolean b)
b
- The new value.public void set(java.lang.String str)
str
- The new value.public void set(vbdate d)
d
- The new value.public void set(vbcurrency c)
c
- The new value.public void set(Collection d)
d
- The new value.public void set(java.lang.Object o) throws java.lang.Exception
o
- The new value.public void set(vbarray d) throws java.lang.Exception
d
- The new value.public void set(variant d) throws java.lang.Exception
d
- The new value.public void setNull()
public void setObject(int index, variant v) throws java.lang.Exception
The
- element index in the array that the variant contains.v
- The new element value.public void setObject(int index, java.lang.Object v) throws java.lang.Exception
The
- element index in the array that the variant contains.v
- The new element value.public void setObject(variant v) throws java.lang.Exception
v
- the new value.public void setObject(java.lang.Object obj) throws java.lang.Exception
obj
- the new value.
set a = obj
set a = nothingpublic variant add(variant b) throws java.lang.Exception
public int getType()
public java.lang.String getDblValue()
public boolean equals(variant a) throws java.lang.Exception
an
- another variant.public boolean unequals(variant a) throws java.lang.Exception
an
- another variant.public boolean Greater(variant a) throws java.lang.Exception
an
- another variant.public boolean Less(variant a) throws java.lang.Exception
an
- another variant.public boolean GreaterEQ(variant a) throws java.lang.Exception
an
- another variant.public boolean LessEQ(variant a) throws java.lang.Exception
an
- another variant.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTypeName()
public java.lang.Object getObj() throws java.lang.Exception
public variant defParm()
public int UBound(int i) throws java.lang.Exception
i
- The whole number indicating which dimension's upper bound is returned.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 second 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 second dimension index of the element that is extracted, which ranges from 0 to UBound(3).i4
- The second dimension index of the element that is extracted, which ranges from 0 to UBound(3).public int getCount() throws java.lang.Exception
public variant getItem(variant index) throws java.lang.Exception
index
- The specified index.public variant getItem(int index) throws java.lang.Exception
index
- The specified index.public variant getItem(java.lang.String index) throws java.lang.Exception
index
- The specified name.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.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() 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 setItem(java.lang.String index, variant va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(java.lang.String index, vbcurrency va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(java.lang.String index, vbdate va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(java.lang.String index, int va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(java.lang.String index, double va) throws java.lang.Exception
index
- The element name.va
- The new element value.public void setItem(java.lang.String index, java.lang.String va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(java.lang.String index, java.lang.Object va) throws java.lang.Exception
index
- The element key.va
- The new element value.public void setItem(variant index, variant va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, vbcurrency va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, vbdate va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, int va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, double va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, java.lang.String va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public void setItem(variant index, java.lang.Object va) throws java.lang.Exception
index
- The element key or index.va
- The new element value.public variant clone_()
public void set_SafeArray(vbarray v)
v
- the vbarray with byRef.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |