jnr.ffi
Class StructLayout.AbstractBoolean

java.lang.Object
  extended by jnr.ffi.StructLayout.Field
      extended by jnr.ffi.StructLayout.AbstractField
          extended by jnr.ffi.StructLayout.AbstractBoolean
Direct Known Subclasses:
StructLayout.Boolean, StructLayout.WBOOL
Enclosing class:
StructLayout

protected abstract class StructLayout.AbstractBoolean
extends StructLayout.AbstractField

Base class for Boolean fields


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

Constructor Detail

StructLayout.AbstractBoolean

protected StructLayout.AbstractBoolean(NativeType type)
Method Detail

get

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

Returns:
a boolean.

set

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

Parameters:
value - The new value.

toString

public String toString(Pointer ptr)
Returns a string representation of this Boolean.

Returns:
a string representation of this Boolean.


Copyright © 2012. All Rights Reserved.