Package de.intarsys.nativec.type
Class NativeVoid
- java.lang.Object
-
- de.intarsys.nativec.type.NativeObject
-
- de.intarsys.nativec.type.NativeSimple
-
- de.intarsys.nativec.type.NativeVoid
-
- All Implemented Interfaces:
INativeObject
public class NativeVoid extends NativeSimple
An object representing "void" (nothing)
-
-
Field Summary
Fields Modifier and Type Field Description static NativeVoidTypeMETAThe meta class instancestatic NativeVoidNULL-
Fields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
-
-
Constructor Summary
Constructors Modifier Constructor Description NativeVoid()Create a new wrapper instanceprotectedNativeVoid(INativeHandle handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NativeVoidcreateFromAddress(long address)INativeTypegetNativeType()The meta information and behavior for the NativeObject.java.lang.ObjectgetValue()A Java side representation from the memory.voidsetValue(java.lang.Object value)Assign (and marshall to memory) the Java side representation.-
Methods inherited from class de.intarsys.nativec.type.NativeSimple
getByteCount
-
Methods inherited from class de.intarsys.nativec.type.NativeObject
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString
-
-
-
-
Field Detail
-
META
public static final NativeVoidType META
The meta class instance
-
NULL
public static final NativeVoid NULL
-
-
Constructor Detail
-
NativeVoid
public NativeVoid()
Create a new wrapper instance
-
NativeVoid
protected NativeVoid(INativeHandle handle)
-
-
Method Detail
-
createFromAddress
public static NativeVoid createFromAddress(long address)
-
getNativeType
public INativeType getNativeType()
Description copied from class:NativeObjectThe meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeTypein interfaceINativeObject- Specified by:
getNativeTypein classNativeObject- Returns:
- The meta information and behavior for the NativeObject.
-
getValue
public java.lang.Object getValue()
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
setValue
public void setValue(java.lang.Object value)
Description copied from interface:INativeObjectAssign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-
-