Qore Programming Language Reference Manual  1.0.8
Pseudo_QC_Object.dox.h
1 
3 namespace Qore {
5 /***/
6 class <object> : public <value> {
7 
8 public:
10 
22 string className();
23 
24 public:
26 
41 bool complexType();
42 
43 public:
45 
57 bool empty();
58 
59 public:
61 
73 *string firstKey();
74 
75 public:
77 
103 code getCallReference(string identifier);
104 
105 public:
107 
128 bool hasCallableMethod(string name);
129 
130 public:
132 
153 bool hasCallableNormalMethod(string name);
154 
155 public:
157 
177 bool hasCallableStaticMethod(string name);
178 
179 public:
181 
191 bool isSystem();
192 
193 public:
195 
208 
209 public:
211 
224 
225 public:
227 
237 list<string> keys();
238 
239 public:
241 
253 *string lastKey();
254 
255 public:
257 
270 
271 public:
273 
285 int size();
286 
287 public:
289 
298 bool sizep();
299 
300 public:
302 
316 int typeCode();
317 
318 public:
320 
329 string uniqueHash();
330 
331 public:
333 
349 bool val();
350 };
351 }
int typeCode()
Returns Qore::NT_OBJECT.
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:6
*string lastKey()
Returns the last member name in the object or NOTHING if the object has no members; if called from ou...
code getCallReference(string identifier)
resolve the string as a call reference
Methods in this pseudo-class can be executed on objects.
Definition: Pseudo_QC_Object.dox.h:6
bool hasCallableMethod(string name)
Returns True if the given method exists (can be non-static or static) and is callable from the curren...
bool isSystem()
Returns True if the object is a system object (ie a constant object like stdin, etc), False if not.
bool complexType()
returns True in all cases for objects
AbstractIterator iterator()
Returns an ObjectIterator object for the object&#39;s members.
This class an iterator class for objects.
Definition: QC_ObjectPairIterator.dox.h:37
string uniqueHash()
Return a unique string for the data independent of the content.
ObjectKeyIterator keyIterator()
Returns a ObjectKeyIterator object for the object, iterating the object&#39;s members.
string className()
Returns the class name of the object.
int size()
Returns the number of members in the object, public and private.
This class an iterator class for objectes.
Definition: QC_ObjectKeyIterator.dox.h:37
*string firstKey()
Returns the first member name in the object or NOTHING if the object has no members; if called from o...
bool hasCallableNormalMethod(string name)
Returns True if the given non-static method exists and is callable from the current context...
ObjectPairIterator pairIterator()
Returns a ObjectPairIterator object for the object&#39;s members.
bool sizep()
Returns True since objects can return a non-zero size.
list< string > keys()
Returns a list of member names of the object; if called from outside the object, only public members ...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
bool val()
Returns False if the object has no public or private members, True if it does.
bool empty()
Returns True if the object has no public or private members, False if it does.
bool hasCallableStaticMethod(string name)
Returns True if the given static method exists and is callable from the current context.
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10