JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.misc.basicStructures
Class LONG

java.lang.Object
  extended by org.xvolks.jnative.misc.basicStructures.AbstractBasicData<java.lang.Integer>
      extended by org.xvolks.jnative.misc.basicStructures.LONG
All Implemented Interfaces:
BasicData<java.lang.Integer>
Direct Known Subclasses:
DWORD, HANDLE, LPARAM, LRESULT, WPARAM

public class LONG
extends AbstractBasicData<java.lang.Integer>


Field Summary
 
Fields inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData
mValue, offset, pointer
 
Constructor Summary
LONG(int value)
           
 
Method Summary
 Pointer createPointer()
          Method createPointer
 int getSizeOf()
          Method getSizeOf
 java.lang.Integer getValue()
          Method getValue
 java.lang.Integer getValueFromPointer()
          Method getValueFromPointer
 void setValue(int lValue)
           
static int sizeOf()
          Method sizeOf
 
Methods inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData
getNextByte, getNextInt, getNextLong, getNextShort, getPointer, getValueAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LONG

public LONG(int value)
Method Detail

getSizeOf

public int getSizeOf()
Method getSizeOf

Returns:
the size of this data

createPointer

public Pointer createPointer()
                      throws NativeException
Method createPointer

Returns:
a MemoryBlock
Throws:
NativeException

getValueFromPointer

public java.lang.Integer getValueFromPointer()
                                      throws NativeException
Method getValueFromPointer

Returns:
a T
Throws:
NativeException

setValue

public void setValue(int lValue)
              throws NativeException
Throws:
NativeException

getValue

public java.lang.Integer getValue()
Description copied from class: AbstractBasicData
Method getValue

Specified by:
getValue in interface BasicData<java.lang.Integer>
Overrides:
getValue in class AbstractBasicData<java.lang.Integer>
Returns:
a T

sizeOf

public static int sizeOf()
Method sizeOf

Returns:
the size of this structure

JNative v1.3 project : see http://jnative.sf.net