Package jnr.ffi
Class Struct.AbstractBoolean
- java.lang.Object
-
- jnr.ffi.Struct.Member
-
- jnr.ffi.Struct.AbstractMember
-
- jnr.ffi.Struct.AbstractBoolean
-
- Direct Known Subclasses:
Struct.BOOL16
,Struct.Boolean
,Struct.WBOOL
- Enclosing class:
- Struct
protected abstract class Struct.AbstractBoolean extends Struct.AbstractMember
Base class for Boolean fields
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBoolean(NativeType type)
protected
AbstractBoolean(NativeType type, Struct.Offset offset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
get()
Gets the value for this field.abstract void
set(boolean value)
Sets the field to a new value.java.lang.String
toString()
Returns a string representation of thisAddress
.-
Methods inherited from class jnr.ffi.Struct.AbstractMember
getMemory, offset, struct
-
-
-
-
Constructor Detail
-
AbstractBoolean
protected AbstractBoolean(NativeType type)
-
AbstractBoolean
protected 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 java.lang.String toString()
Returns a string representation of thisAddress
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this
Address
.
-
-