com.kenai.jaffl.struct
Class Struct.Address

java.lang.Object
  extended by java.lang.Number
      extended by com.kenai.jaffl.struct.Struct.NumberField
          extended by com.kenai.jaffl.struct.Struct.Address
All Implemented Interfaces:
Struct.Member, java.io.Serializable
Enclosing class:
Struct

public class Struct.Address
extends Struct.NumberField

Represents a native memory address.

See Also:
Serialized Form

Constructor Summary
Struct.Address()
          Creates a new Address field.
Struct.Address(Struct.Offset offset)
           
 
Method Summary
 Address get()
          Gets the com.googlecode.jffi.Address value from the native memory.
 int intValue()
          Returns an integer representation of this address.
 long longValue()
          Returns an long representation of this address.
 void set(Address value)
          Puts a jafl.Address value into the native memory.
 void set(java.lang.Number value)
          Sets the field to a new value.
 java.lang.String toString()
          Returns a string representation of this Address.
 
Methods inherited from class com.kenai.jaffl.struct.Struct.NumberField
doubleValue, floatValue, getMemoryIO, offset, struct
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struct.Address

public Struct.Address()
Creates a new Address field.


Struct.Address

public Struct.Address(Struct.Offset offset)
Method Detail

get

public final Address get()
Gets the com.googlecode.jffi.Address value from the native memory.

Returns:
a com.googlecode.jffi.Address.

set

public final void set(Address value)
Puts a jafl.Address value into the native memory.


set

public void set(java.lang.Number value)
Description copied from class: Struct.NumberField
Sets the field to a new value.

Specified by:
set in class Struct.NumberField
Parameters:
value - The new value.

intValue

public final int intValue()
Returns an integer representation of this address.

Specified by:
intValue in class java.lang.Number
Returns:
an integer value for this address.

longValue

public final long longValue()
Returns an long representation of this address.

Overrides:
longValue in class Struct.NumberField
Returns:
an long value for this address.

toString

public final java.lang.String toString()
Returns a string representation of this Address.

Overrides:
toString in class Struct.NumberField
Returns:
a string representation of this Address.