com.jniwrapper
Class Bool

java.lang.Object
  |
  +--com.jniwrapper.Parameter
        |
        +--com.jniwrapper.Bool

public class Bool
extends Parameter

Represents bool (boolean) value and type.


Field Summary
static Bool FALSE
          false bool value
static Bool TRUE
          true bool value
 
Constructor Summary
Bool()
          Constructs boolean object with false value
Bool(Bool t)
          Constructs a copy of Bool object
Bool(boolean b)
          Constructs boolean object with specified value
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Compares this Parameter object to a given object.
 int getLength()
          Returns a length of the parameter in memory.
 boolean getValue()
          Returns boolean value
 void read(DataBuffer stackBuffer, int offset)
          Reads this parameter from a specified data source.
 void setValue(boolean value)
          Sets boolean value
 java.lang.String toString()
           
 void write(DataBuffer stackBuffer, int offset)
          Writes this parameter to a specified data source.
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, asReturnValue, getAlignedLength, getBuffer, getOffset, indent, pop, push, read, setBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FALSE

public static final Bool FALSE
false bool value


TRUE

public static final Bool TRUE
true bool value

Constructor Detail

Bool

public Bool()
Constructs boolean object with false value


Bool

public Bool(boolean b)
Constructs boolean object with specified value


Bool

public Bool(Bool t)
Constructs a copy of Bool object

Method Detail

getValue

public boolean getValue()
Returns boolean value


setValue

public void setValue(boolean value)
Sets boolean value


getLength

public int getLength()
Description copied from class: Parameter
Returns a length of the parameter in memory. This method is analogous to C sizeof() operator.

Specified by:
getLength in class Parameter

write

public void write(DataBuffer stackBuffer,
                  int offset)
           throws MemoryAccessViolationException
Description copied from class: Parameter
Writes this parameter to a specified data source.

Specified by:
write in class Parameter
MemoryAccessViolationException

read

public void read(DataBuffer stackBuffer,
                 int offset)
          throws MemoryAccessViolationException
Description copied from class: Parameter
Reads this parameter from a specified data source.

Specified by:
read in class Parameter
MemoryAccessViolationException

clone

public java.lang.Object clone()
Specified by:
clone in class Parameter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Description copied from class: Parameter
Compares this Parameter object to a given object. Two Parameter objects are considered equal if their byte representations are equal and they are of the same type. Subclasses may override this method as appropriate.

Overrides:
equals in class Parameter
Parameters:
obj - value to compare this object to
Returns:
true if two objects are equal.