|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.type.runtime.NullablePrimitive
net.sf.farrago.type.runtime.NullablePrimitive.NullableBoolean
public static final class NullablePrimitive.NullableBoolean
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 |
|---|
public boolean value
| Constructor Detail |
|---|
public NullablePrimitive.NullableBoolean()
| Method Detail |
|---|
public void assignFrom(Object obj)
AssignableValue
assignFrom in interface AssignableValueassignFrom in class NullablePrimitiveobj - value to assign, or null to set nullprotected void setNumber(Number number)
NullablePrimitive
setNumber in class NullablePrimitivenumber - a new non-null value to be assignedprotected void setLong(long n)
NullablePrimitive
setLong in class NullablePrimitiven - long value to assignpublic void setBit(boolean bit)
BitReference
setBit in interface BitReferencebit - new valuepublic boolean getBit()
getBit in interface BitReferencepublic static boolean convertString(String s)
public void assignFromAnd3VL(boolean n0,
boolean v0,
boolean n1,
boolean v1)
n0 - null indictator for arg0v0 - truth value of arg0 when !n0n1 - null indicator for arg1v1 - truth value of arg1 when !n1
public void assignFromOr3VL(boolean n0,
boolean v0,
boolean n1,
boolean v1)
n0 - null indictator for arg0v0 - truth value of arg0 when !n0n1 - null indicator for arg1v1 - truth value of arg1 when !n1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||