public static class Variant.VARIANT extends Union
Modifier and Type | Class and Description |
---|---|
static class |
Variant.VARIANT._VARIANT |
static class |
Variant.VARIANT.ByReference |
static class |
Variant.VARIANT.ByValue |
Structure.StructField
Modifier and Type | Field and Description |
---|---|
Variant.VARIANT._VARIANT |
_variant |
OaIdl.DECIMAL |
decVal |
static Variant.VARIANT |
VARIANT_MISSING |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
VARIANT() |
VARIANT(boolean value) |
VARIANT(byte value) |
VARIANT(char value) |
VARIANT(Date value) |
VARIANT(double value) |
VARIANT(float value) |
VARIANT(IDispatch value) |
VARIANT(int value) |
VARIANT(long value) |
VARIANT(OaIdl.DATE value) |
VARIANT(OaIdl.SAFEARRAY array) |
VARIANT(OaIdl.VARIANT_BOOL value) |
VARIANT(Pointer pointer) |
VARIANT(short value) |
VARIANT(String value)
Create a new VARIANT wrapping the supplied string.
|
VARIANT(WinDef.BOOL value) |
VARIANT(WinDef.BYTE value) |
VARIANT(WinDef.CHAR value) |
VARIANT(WinDef.LONG value) |
VARIANT(WinDef.SHORT value) |
VARIANT(WTypes.BSTR value) |
VARIANT(WTypes.BSTRByReference value) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue() |
byte |
byteValue() |
Date |
dateValue() |
double |
doubleValue() |
float |
floatValue() |
protected OaIdl.DATE |
fromJavaDate(Date javaDate)
Deprecated.
|
Object |
getValue() |
WTypes.VARTYPE |
getVarType() |
int |
intValue() |
long |
longValue() |
void |
setValue(int vt,
Object value) |
void |
setValue(OaIdl.SAFEARRAY array) |
void |
setValue(WTypes.VARTYPE vt,
Object value) |
void |
setVarType(short vt) |
short |
shortValue() |
String |
stringValue() |
protected Date |
toJavaDate(OaIdl.DATE varDate)
Deprecated.
|
getFieldOrder, getNativeAlignment, getTypedValue, readField, readField, setType, setType, setTypedValue, writeField, writeField, writeField
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write
public static final Variant.VARIANT VARIANT_MISSING
public Variant.VARIANT._VARIANT _variant
public OaIdl.DECIMAL decVal
public VARIANT()
public VARIANT(Pointer pointer)
public VARIANT(WTypes.BSTR value)
public VARIANT(WTypes.BSTRByReference value)
public VARIANT(OaIdl.VARIANT_BOOL value)
public VARIANT(WinDef.BOOL value)
public VARIANT(WinDef.LONG value)
public VARIANT(WinDef.SHORT value)
public VARIANT(OaIdl.DATE value)
public VARIANT(byte value)
public VARIANT(WinDef.BYTE value)
public VARIANT(char value)
public VARIANT(WinDef.CHAR value)
public VARIANT(short value)
public VARIANT(int value)
public VARIANT(long value)
public VARIANT(float value)
public VARIANT(double value)
public VARIANT(String value)
Implementation note: the string is wrapped as a BSTR value,
that is allocated using OleAuto.SysAllocString(java.lang.String)
and needs to be freed using
OleAuto.SysFreeString(com.sun.jna.platform.win32.WTypes.BSTR)
by the user
value
- to be wrappedpublic VARIANT(boolean value)
public VARIANT(IDispatch value)
public VARIANT(Date value)
public VARIANT(OaIdl.SAFEARRAY array)
public WTypes.VARTYPE getVarType()
public void setVarType(short vt)
public void setValue(int vt, Object value)
public void setValue(OaIdl.SAFEARRAY array)
public void setValue(WTypes.VARTYPE vt, Object value)
public Object getValue()
public byte byteValue()
public short shortValue()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public String stringValue()
public boolean booleanValue()
public Date dateValue()
@Deprecated protected Date toJavaDate(OaIdl.DATE varDate)
@Deprecated protected OaIdl.DATE fromJavaDate(Date javaDate)