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


org.xvolks.jnative.misc.basicStructures
Class AbstractBasicData<T>

java.lang.Object
  extended by org.xvolks.jnative.misc.basicStructures.AbstractBasicData<T>
All Implemented Interfaces:
BasicData<T>
Direct Known Subclasses:
HWND, INT64, LONG, MemoryStatusEx, Point, UINT

public abstract class AbstractBasicData<T>
extends java.lang.Object
implements BasicData<T>


Field Summary
protected  T mValue
           
protected  int offset
           
protected  Pointer pointer
           
 
Constructor Summary
protected AbstractBasicData(T lValue)
           
 
Method Summary
protected  byte getNextByte()
           
protected  int getNextInt()
           
protected  long getNextLong()
           
protected  short getNextShort()
           
 Pointer getPointer()
          Method getPointer
 T getValue()
          Method getValue
 java.lang.String getValueAsString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xvolks.jnative.misc.basicStructures.BasicData
createPointer, getSizeOf, getValueFromPointer
 

Field Detail

mValue

protected T mValue

pointer

protected Pointer pointer

offset

protected int offset
Constructor Detail

AbstractBasicData

protected AbstractBasicData(T lValue)
Method Detail

getNextByte

protected byte getNextByte()
                    throws NativeException
Throws:
NativeException

getNextShort

protected short getNextShort()
                      throws NativeException
Throws:
NativeException

getNextInt

protected int getNextInt()
                  throws NativeException
Throws:
NativeException

getNextLong

protected long getNextLong()
                    throws NativeException
Throws:
NativeException

getPointer

public Pointer getPointer()
Method getPointer

Specified by:
getPointer in interface BasicData<T>
Returns:
a Pointer

getValue

public T getValue()
Method getValue

Specified by:
getValue in interface BasicData<T>
Returns:
a T

getValueAsString

public java.lang.String getValueAsString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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