net.sf.farrago.type.runtime
Class NullablePrimitive.NullableBoolean

java.lang.Object
  extended by net.sf.farrago.type.runtime.NullablePrimitive
      extended by net.sf.farrago.type.runtime.NullablePrimitive.NullableBoolean
All Implemented Interfaces:
AssignableValue, BitReference, DataValue, NullableValue
Enclosing class:
NullablePrimitive

public static final class NullablePrimitive.NullableBoolean
extends NullablePrimitive
implements BitReference

Nullable wrapper for boolean.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.farrago.type.runtime.NullablePrimitive
NullablePrimitive.NullableBoolean, NullablePrimitive.NullableByte, NullablePrimitive.NullableDouble, NullablePrimitive.NullableFloat, NullablePrimitive.NullableInteger, NullablePrimitive.NullableLong, NullablePrimitive.NullableShort
 
Field Summary
 boolean value
          Wrapped primitive
 
Fields inherited from class net.sf.farrago.type.runtime.NullablePrimitive
FALSE_LITERAL, isNull, NULL_IND_FIELD_NAME, TRUE_LITERAL, UNKNOWN_LITERAL, VALUE_FIELD_NAME
 
Fields inherited from interface net.sf.farrago.type.runtime.NullableValue
NULL_IND_ACCESSOR_NAME, NULL_IND_MUTATOR_NAME
 
Fields inherited from interface net.sf.farrago.type.runtime.AssignableValue
ASSIGNMENT_METHOD_NAME
 
Constructor Summary
NullablePrimitive.NullableBoolean()
           
 
Method Summary
 void assignFrom(Object obj)
          Assigns value from an Object.
 void assignFromAnd3VL(boolean n0, boolean v0, boolean n1, boolean v1)
          Implements the three-valued-logic version of the AND operator.
 void assignFromOr3VL(boolean n0, boolean v0, boolean n1, boolean v1)
          Implements the three-valued-logic version of the OR operator.
static boolean convertString(String s)
          Implements cast from string to non-nullable boolean Invoked by generated code
 boolean getBit()
           
 void setBit(boolean bit)
          Sets the bit value referenced by this.
protected  void setLong(long n)
          Assignment from non-null long value.
protected  void setNumber(Number number)
          Assignment from abstract Number object.
 
Methods inherited from class net.sf.farrago.type.runtime.NullablePrimitive
getNullableData, isNull, setNull, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public boolean value
Wrapped primitive

Constructor Detail

NullablePrimitive.NullableBoolean

public NullablePrimitive.NullableBoolean()
Method Detail

assignFrom

public void assignFrom(Object obj)
Description copied from interface: AssignableValue
Assigns value from an Object.

Specified by:
assignFrom in interface AssignableValue
Overrides:
assignFrom in class NullablePrimitive
Parameters:
obj - value to assign, or null to set null

setNumber

protected void setNumber(Number number)
Description copied from class: NullablePrimitive
Assignment from abstract Number object.

Specified by:
setNumber in class NullablePrimitive
Parameters:
number - a new non-null value to be assigned

setLong

protected void setLong(long n)
Description copied from class: NullablePrimitive
Assignment from non-null long value.

Specified by:
setLong in class NullablePrimitive
Parameters:
n - long value to assign

setBit

public void setBit(boolean bit)
Description copied from interface: BitReference
Sets the bit value referenced by this.

Specified by:
setBit in interface BitReference
Parameters:
bit - new value

getBit

public boolean getBit()
Specified by:
getBit in interface BitReference
Returns:
the bit value referenced by this

convertString

public static boolean convertString(String s)
Implements cast from string to non-nullable boolean Invoked by generated code


assignFromAnd3VL

public void assignFromAnd3VL(boolean n0,
                             boolean v0,
                             boolean n1,
                             boolean v1)
Implements the three-valued-logic version of the AND operator. Invoked by generated code.

Parameters:
n0 - null indictator for arg0
v0 - truth value of arg0 when !n0
n1 - null indicator for arg1
v1 - truth value of arg1 when !n1

assignFromOr3VL

public void assignFromOr3VL(boolean n0,
                            boolean v0,
                            boolean n1,
                            boolean v1)
Implements the three-valued-logic version of the OR operator. Invoked by generated code.

Parameters:
n0 - null indictator for arg0
v0 - truth value of arg0 when !n0
n1 - null indicator for arg1
v1 - truth value of arg1 when !n1