Qore Programming Language Reference Manual
0.9.3.2
|
Methods in this pseudo-class can be executed on objects. More...
Public Member Methods | |
string | className () |
Returns the class name of the object. More... | |
bool | complexType () |
returns True in all cases for objects More... | |
bool | empty () |
Returns True if the object has no public or private members, False if it does. More... | |
*string | firstKey () |
Returns the first member name in the object or NOTHING if the object has no members; if called from outside the object, the first public member name is returned (if any) More... | |
bool | hasCallableMethod (string name) |
Returns True if the given method exists (can be non-static or static) and is callable from the current context. More... | |
bool | hasCallableNormalMethod (string name) |
Returns True if the given non-static method exists and is callable from the current context. More... | |
bool | hasCallableStaticMethod (string name) |
Returns True if the given static method exists and is callable from the current context. More... | |
bool | isSystem () |
Returns True if the object is a system object (ie a constant object like stdin, etc), False if not. More... | |
AbstractIterator | iterator () |
Returns an ObjectIterator object for the object's members. More... | |
ObjectKeyIterator | keyIterator () |
Returns a ObjectKeyIterator object for the object, iterating the object's members. More... | |
list< string > | keys () |
Returns a list of member names of the object; if called from outside the object, only public members are returned. More... | |
*string | lastKey () |
Returns the last member name in the object or NOTHING if the object has no members; if called from outside the object, the last public member name is returned (if any) More... | |
ObjectPairIterator | pairIterator () |
Returns a ObjectPairIterator object for the object's members. More... | |
int | size () |
Returns the number of members in the object, public and private. More... | |
bool | sizep () |
Returns True since objects can return a non-zero size. More... | |
int | typeCode () |
Returns Qore::NT_OBJECT. More... | |
string | uniqueHash () |
Return a unique string for the data independent of the content. More... | |
bool | val () |
Returns False if the object has no public or private members, True if it does. More... | |
Public Member Methods inherited from <value> | |
bool | callp () |
Returns False; this method is reimplemented in other types and will return True if the given expression is a callable value (ie closures or call references) More... | |
bool | complexType () |
returns True if the value has a complex type, False if not More... | |
bool | empty () |
Returns True; this method will be reimplemented in container types where it may return False. More... | |
string | fullType () |
returns the full type name which differs from the simple type name in case of complex types and objects More... | |
bool | intp () |
Returns False; this method is reimplemented in other types and will return True if the given expression can be converted to an integer. More... | |
AbstractIterator | iterator () |
Returns an iterator object for the value; the default iterator object returned is SingleValueIterator. More... | |
int | lsize () |
Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-lists (except for NOTHING where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values. More... | |
int | size () |
Returns zero; this method will be reimplemented in container types where it may return a non-zero value. More... | |
bool | sizep () |
Returns True if the type can return a non-zero size (True for containers including binary objects and strings, False for everything else) More... | |
bool | strp () |
Returns False; this method is reimplemented in other types and will return True if the given expression can be converted to a string. More... | |
bool | toBool () |
Returns the boolean representation of the value; the default is False. More... | |
float | toFloat () |
Returns the floating-point representation of the value; the default is 0.0. More... | |
int | toInt () |
Returns the integer representation of the value; the default is 0. More... | |
number | toNumber () |
Returns the arbitrary-precision numeric representation of the value; the default is 0. More... | |
string | toString () |
Returns the string representation of the value; the default is an empty string. More... | |
string | type () |
Returns the string type for the value. More... | |
int | typeCode () |
Returns the type code for the value. More... | |
bool | val () |
Returns False; this method is reimplemented in other types and will return True if the given expression has a non-empty value. More... | |
Methods in this pseudo-class can be executed on objects.
string <object>::className | ( | ) |
Returns the class name of the object.
bool <object>::complexType | ( | ) |
bool <object>::empty | ( | ) |
Returns True if the object has no public or private members, False if it does.
The opposite of <object>::val()
*string <object>::firstKey | ( | ) |
Returns the first member name in the object or NOTHING if the object has no members; if called from outside the object, the first public member name is returned (if any)
bool <object>::hasCallableMethod | ( | string | name | ) |
Returns True if the given method exists (can be non-static or static) and is callable from the current context.
bool <object>::hasCallableNormalMethod | ( | string | name | ) |
Returns True if the given non-static method exists and is callable from the current context.
bool <object>::hasCallableStaticMethod | ( | string | name | ) |
bool <object>::isSystem | ( | ) |
AbstractIterator <object>::iterator | ( | ) |
Returns an ObjectIterator object for the object's members.
ObjectKeyIterator <object>::keyIterator | ( | ) |
Returns a ObjectKeyIterator object for the object, iterating the object's members.
Returns a list of member names of the object; if called from outside the object, only public members are returned.
*string <object>::lastKey | ( | ) |
Returns the last member name in the object or NOTHING if the object has no members; if called from outside the object, the last public member name is returned (if any)
ObjectPairIterator <object>::pairIterator | ( | ) |
Returns a ObjectPairIterator object for the object's members.
int <object>::size | ( | ) |
Returns the number of members in the object, public and private.
bool <object>::sizep | ( | ) |
Returns True since objects can return a non-zero size.
int <object>::typeCode | ( | ) |
string <object>::uniqueHash | ( | ) |
Return a unique string for the data independent of the content.
bool <object>::val | ( | ) |
Returns False if the object has no public or private members, True if it does.
The opposite of <object>::empty()