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.FieldOrder, 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(java.util.Date value) |
VARIANT(Dispatch value) |
VARIANT(double value) |
VARIANT(float value) |
VARIANT(IDispatch value)
Deprecated.
Use
#VARIANT(com.sun.jna.platform.win32.COM.Dispatch) |
VARIANT(int value) |
VARIANT(IntByReference value) |
VARIANT(long value) |
VARIANT(OaIdl.DATE value) |
VARIANT(OaIdl.SAFEARRAY array) |
VARIANT(OaIdl.SAFEARRAYByReference array) |
VARIANT(OaIdl.VARIANT_BOOL value) |
VARIANT(Pointer pointer) |
VARIANT(short value) |
VARIANT(java.lang.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() |
java.util.Date |
dateValue() |
double |
doubleValue() |
float |
floatValue() |
java.lang.Object |
getValue() |
WTypes.VARTYPE |
getVarType() |
int |
intValue() |
long |
longValue() |
void |
setValue(int vt,
java.lang.Object value) |
void |
setValue(OaIdl.SAFEARRAY array) |
void |
setValue(OaIdl.SAFEARRAYByReference array) |
void |
setValue(WTypes.VARTYPE vt,
java.lang.Object value) |
void |
setVarType(short vt) |
short |
shortValue() |
java.lang.String |
stringValue() |
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, 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(IntByReference value)
public VARIANT(long value)
public VARIANT(float value)
public VARIANT(double value)
public VARIANT(java.lang.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)
@Deprecated public VARIANT(IDispatch value)
#VARIANT(com.sun.jna.platform.win32.COM.Dispatch)
public VARIANT(Dispatch value)
public VARIANT(java.util.Date value)
public VARIANT(OaIdl.SAFEARRAY array)
public VARIANT(OaIdl.SAFEARRAYByReference array)
public WTypes.VARTYPE getVarType()
public void setVarType(short vt)
public void setValue(int vt, java.lang.Object value)
public void setValue(OaIdl.SAFEARRAY array)
public void setValue(OaIdl.SAFEARRAYByReference array)
public void setValue(WTypes.VARTYPE vt, java.lang.Object value)
public java.lang.Object getValue()
public byte byteValue()
public short shortValue()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public java.lang.String stringValue()
public boolean booleanValue()
public java.util.Date dateValue()