|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeSimple
de.intarsys.nativec.type.NativeNumber
de.intarsys.nativec.type.NativeShort
public class NativeShort
A wrapper for a primitive short.
| Field Summary | |
|---|---|
static NativeShortType |
META
The meta class instance |
| Fields inherited from class de.intarsys.nativec.type.NativeObject |
|---|
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_SHORT |
| Constructor Summary | |
|---|---|
NativeShort()
Create a new wrapper |
|
NativeShort(short value)
Create a new wrapper |
|
| Method Summary | |
|---|---|
byte |
byteValue()
This as a java primitive byte value. |
static NativeShort |
createFromAddress(long address)
|
INativeType |
getNativeType()
The meta information and behavior for the NativeObject. |
Object |
getValue()
A Java side representation from the memory. |
int |
intValue()
This as a java primitive int value. |
long |
longValue()
This as a java primitive long value. |
void |
setValue(Object value)
Assign (and marshall to memory) the Java side representation. |
void |
setValue(short value)
|
short |
shortValue()
This as a java primitive short value. |
String |
toString()
|
| Methods inherited from class de.intarsys.nativec.type.NativeSimple |
|---|
getByteCount |
| Methods inherited from class de.intarsys.nativec.type.NativeObject |
|---|
cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NativeShortType META
| Constructor Detail |
|---|
public NativeShort()
public NativeShort(short value)
| Method Detail |
|---|
public static NativeShort createFromAddress(long address)
public byte byteValue()
NativeNumber
byteValue in class NativeNumberpublic INativeType getNativeType()
NativeObjectThere is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType in interface INativeObjectgetNativeType in class NativeObjectpublic Object getValue()
INativeObject
INativeObject.public int intValue()
NativeNumber
intValue in class NativeNumberpublic long longValue()
NativeNumber
longValue in class NativeNumberpublic void setValue(Object value)
INativeObject
value - The new Java value.public void setValue(short value)
public short shortValue()
NativeNumber
shortValue in class NativeNumberpublic String toString()
toString in class Object
|
intarsys nativeC library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||