Qore Programming Language Reference Manual
0.9.16
|
Object functions. More...
Functions | |
auto | Qore::callObjectMethod (object obj, string method,...) |
Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. More... | |
nothing | Qore::callObjectMethod () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
auto | Qore::callObjectMethodArgs (object obj, string method, *softlist< auto > varg) |
Calls a method of an object, using the optional third argument as the argument list to the method. More... | |
nothing | Qore::callObjectMethodArgs () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
auto | Qore::call_object_method (object obj, string method,...) |
Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method. More... | |
auto | Qore::call_object_method_args (object obj, string method, *softlist< auto > varg) |
Calls a method of an object, using the optional third argument as the argument list to the method. More... | |
auto | Qore::call_pseudo (any val, string meth,...) |
calls a pseudo-method on the given value More... | |
auto | Qore::call_pseudo_args (any val, string meth, *softlist< auto > argv) |
calls a pseudo-method on the given value with arguments given as a list More... | |
auto | Qore::call_static_method (string class_name, string method,...) |
Calls a static method of an object, passing the arguments to the function as arguments to the method. More... | |
auto | Qore::call_static_method_args (string class_name, string method, *softlist< auto > call_args) |
Calls a static method of an object, passing the arguments to the function as arguments to the method. More... | |
object | Qore::create_object (string class_name,...) |
creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor More... | |
object | Qore::create_object_args (string class_name, *softlist< auto > argv) |
creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor More... | |
list | Qore::getMethodList (object obj) |
Returns a list of strings of the names of the methods of the class of the object passed as a parameter. More... | |
nothing | Qore::getMethodList () |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More... | |
list< string > | Qore::get_method_list (object obj) |
Returns a list of strings of the names of the methods of the class of the object passed as a parameter. More... | |
Object functions.
auto Qore::call_object_method | ( | object | obj, |
string | method, | ||
... | |||
) |
Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method.
obj | the object to use for the call |
method | the method to call |
... | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
auto Qore::call_object_method_args | ( | object | obj, |
string | method, | ||
*softlist< auto > | varg | ||
) |
Calls a method of an object, using the optional third argument as the argument list to the method.
obj | the object to use for the call |
method | the method to call |
varg | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
auto Qore::call_pseudo | ( | any | val, |
string | meth, | ||
... | |||
) |
calls a pseudo-method on the given value
val | the value to call the pseudo-method on |
meth | the string method name of the pseudo-method to call |
... | any other arguments to the method |
auto Qore::call_pseudo_args | ( | any | val, |
string | meth, | ||
*softlist< auto > | argv | ||
) |
calls a pseudo-method on the given value with arguments given as a list
val | the value to call the pseudo-method on |
meth | the string method name of the pseudo-method to call |
argv | any other arguments to the method |
Calls a static method of an object, passing the arguments to the function as arguments to the method.
class_name | the with an optional namespace prefix |
method | the static method to call |
... | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
auto Qore::call_static_method_args | ( | string | class_name, |
string | method, | ||
*softlist< auto > | call_args | ||
) |
Calls a static method of an object, passing the arguments to the function as arguments to the method.
class_name | the with an optional namespace prefix |
method | the static method to call |
call_args | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
nothing Qore::callObjectMethod | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
auto Qore::callObjectMethod | ( | object | obj, |
string | method, | ||
... | |||
) |
Calls a method of an object, passing the remainder of the arguments to the function as arguments to the method.
obj | the object to use for the call |
method | the method to call |
... | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
nothing Qore::callObjectMethodArgs | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
auto Qore::callObjectMethodArgs | ( | object | obj, |
string | method, | ||
*softlist< auto > | varg | ||
) |
Calls a method of an object, using the optional third argument as the argument list to the method.
obj | the object to use for the call |
method | the method to call |
varg | any additional arguments to the method |
METHOD-DOES-NOT-EXIST | The named method does not exist in this class |
ILLEGAL-EXPLICIT-METHOD-CALL | The named method may not be called explicitly |
METHOD-IS-PRIVATE | The named method is private and therefore can only be called within the class |
BASE-CLASS-IS-PRIVATE | The named method is a member of a privately inherited base class |
object Qore::create_object | ( | string | class_name, |
... | |||
) |
creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor
class_name | the name of the class to instantiate (can be prefixed with a namespace path) |
... | any other arguments to the constructor |
CREATE-OBJECT-ERROR | unknown class, class implements features restricted by current parse options / sandboxing restrictions |
CONSTRUCTOR-IS-PRIVATE | attempt to instantiate an object with a private constructor from outside the class |
object Qore::create_object_args | ( | string | class_name, |
*softlist< auto > | argv | ||
) |
creates an object from the class name (which can include a namespace path) and optionally any arguments for the constructor
class_name | the name of the class to instantiate (can be prefixed with a namespace path) |
argv | any other arguments to the constructor |
CREATE-OBJECT-ERROR | unknown class, class implements features restricted by current parse options / sandboxing restrictions |
CONSTRUCTOR-IS-PRIVATE | attempt to instantiate an object with a private constructor from outside the class |
Returns a list of strings of the names of the methods of the class of the object passed as a parameter.
obj | an object of the class to get the method list from |
nothing Qore::getMethodList | ( | ) |
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
list Qore::getMethodList | ( | object | obj | ) |
Returns a list of strings of the names of the methods of the class of the object passed as a parameter.
obj | an object of the class to get the method list from |