Jive reference manual
|
Public Member Functions | |
Boolean (bool value=false) | |
Boolean (const String &s) | |
virtual void | readFrom (io::ObjectInput &in) |
virtual void | writeTo (io::ObjectOutput &out) const |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
virtual lint | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
virtual Ref< Object > | clone () const |
bool | getValue () const |
void | setValue (bool value) |
Public Member Functions inherited from jem::Object | |
virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
Static Public Member Functions | |
static bool | parse (const String &s) |
static bool | parse (bool &value, const String &s) |
static idx_t | print (char *buf, idx_t bufsize, bool value) |
static Self * | dynamicCast (Object &rhs) |
Static Public Member Functions inherited from jem::Object | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
Public Attributes | |
bool | value |
Protected Member Functions | |
virtual | ~Boolean () |
Protected Member Functions inherited from jem::Collectable | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Protected Member Functions inherited from jem::Clonable | |
virtual | ~Clonable () |
virtual void | emitVTable_ () |
Protected Member Functions inherited from jem::Interface | |
virtual | ~Interface () |
Empty destructor. More... | |
Protected Member Functions inherited from jem::io::Serializable | |
virtual | ~Serializable () |
virtual void | emitVtableFunc_ () |
|
explicit |
|
explicit |
|
protectedvirtual |
|
virtual |
Implements jem::io::Serializable.
|
virtual |
Implements jem::io::Serializable.
|
virtual |
Returns a short textual description of this object. The toString
method of the class Object
returns:
getClass()->getName() + "@" + String( hashValue() )
String
representing this object. Reimplemented from jem::Object.
|
virtual |
Returns a hash value for this object. This function should return the same hash value when it is invoked more than once on the same object, provided that the object is not modified. If two object are equal according to the equals
method, then those objects should return the same hash value. Note that two objects which are not equal may also return the same hash value.
The hashValue
implementation of the Object
class returns a hash value for the memory address of the object.
Reimplemented from jem::Object.
Tests whether this Object
is equal to the Object
obj. The equals
method should be:
x
, x->equals(x)
should return true
.x
and y
, x->equals(y)
should return the same value as y->equals(x)
.x
, y
, and z
, x->equals(y)
returns true
and y->equals(z)
returns true
, then x->equals(z)
should return true
.x
and y
, multiple invocations of x->equals(y)
should return the same value as long as the objects are not modified.In addition, x->equals(NIL)
should return false
for all objects x
.
The default implementation of equals
returns true
if and only if this object and the argument obj are located at the same memory address. That is, the default implementation returns (this == obj)
.
obj | - the object this object should be compared to, or NIL . |
true
is this object equals the object obj, and false
otherwise. Reimplemented from jem::Object.
Implements jem::Clonable.
bool jem::Boolean::getValue | ( | ) | const |
void jem::Boolean::setValue | ( | bool | value | ) |
|
static |
|
static |
|
static |
|
static |
bool jem::Boolean::value |