Package jnr.ffi
Class StructLayout.AbstractBoolean
- java.lang.Object
-
- jnr.ffi.StructLayout.Field
-
- jnr.ffi.StructLayout.AbstractField
-
- jnr.ffi.StructLayout.AbstractBoolean
-
- Direct Known Subclasses:
StructLayout.BOOL16
,StructLayout.Boolean
,StructLayout.WBOOL
- Enclosing class:
- StructLayout
protected abstract class StructLayout.AbstractBoolean extends StructLayout.AbstractField
Base class for Boolean fields
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBoolean(NativeType type)
protected
AbstractBoolean(NativeType type, StructLayout.Offset offset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
toString(Pointer ptr)
Returns a string representation of thisBoolean
.-
Methods inherited from class jnr.ffi.StructLayout.Field
enclosing, offset
-
-
-
-
Constructor Detail
-
AbstractBoolean
protected AbstractBoolean(NativeType type)
-
AbstractBoolean
protected AbstractBoolean(NativeType type, StructLayout.Offset offset)
-
-
Method Detail
-
get
public abstract boolean get(Pointer ptr)
Gets the value for this field.- Parameters:
ptr
- The pointer to the field.- Returns:
- a boolean.
-
set
public abstract void set(Pointer ptr, boolean value)
Sets the field to a new value.- Parameters:
ptr
- The pointer to the field.value
- The new value.
-
toString
public java.lang.String toString(Pointer ptr)
Returns a string representation of thisBoolean
.- Parameters:
ptr
- The pointer to the field.- Returns:
- a string representation of this
Boolean
.
-
-