jnr.ffi
Class Struct.AbstractBoolean

java.lang.Object
  extended by jnr.ffi.Struct.Member
      extended by jnr.ffi.Struct.AbstractMember
          extended by jnr.ffi.Struct.AbstractBoolean
Direct Known Subclasses:
Struct.Boolean, Struct.WBOOL
Enclosing class:
Struct

protected abstract class Struct.AbstractBoolean
extends Struct.AbstractMember

Base class for Boolean fields


Constructor Summary
protected Struct.AbstractBoolean(NativeType type)
           
protected Struct.AbstractBoolean(NativeType type, Struct.Offset offset)
           
 
Method Summary
abstract  boolean get()
          Gets the value for this field.
abstract  void set(boolean value)
          Sets the field to a new value.
 String toString()
          Returns a string representation of this Address.
 
Methods inherited from class jnr.ffi.Struct.AbstractMember
getMemory, offset, struct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struct.AbstractBoolean

protected Struct.AbstractBoolean(NativeType type)

Struct.AbstractBoolean

protected Struct.AbstractBoolean(NativeType type,
                                 Struct.Offset offset)
Method Detail

get

public abstract boolean get()
Gets the value for this field.

Returns:
a boolean.

set

public abstract void set(boolean value)
Sets the field to a new value.

Parameters:
value - The new value.

toString

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

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


Copyright © 2012. All Rights Reserved.