This class provides information about Qore constructor methods.
More...
This class provides information about Qore constructor methods.
- Restrictions:
- Qore::PO_NO_REFLECTION
- See also
- ConstructorMethodVariant
- Since
- Qore 0.9.0
◆ call()
auto Qore::Reflection::ConstructorMethod::call |
( |
|
... | ) |
|
calls the constructor with the given arguments
- Example:
auto v = m.call(arg1, arg2);
- Parameters
-
... | optional arguments to the method |
- Returns
- the object created by the constructor
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class and method has been destroyed |
CREATE-OBJECT-ERROR | class implements features restricted by current parse options / sandboxing restrictions |
- See also
- callArgs()
◆ callArgs()
auto Qore::Reflection::ConstructorMethod::callArgs |
( |
*softlist< auto > |
argv | ) |
|
calls the construcrtor with the given arguments as a list
- Example:
auto v = m.callArgs(argv);
- Parameters
-
argv | optional arguments to the method |
- Returns
- the object created by the constructor
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class and method has been destroyed |
CREATE-OBJECT-ERROR | class implements features restricted by current parse options / sandboxing restrictions |
- See also
- call()
◆ constructor() [1/2]
Qore::Reflection::ConstructorMethod::constructor |
( |
Class |
cls | ) |
|
Creates the object from the class.
- Example:
ConstructorMethod m(cls);
- Parameters
-
cls | the class for the method |
- Exceptions
-
UNKOWN-METHOD | cannot find a constructor method for the given class |
◆ constructor() [2/2]
Qore::Reflection::ConstructorMethod::constructor |
( |
string |
class_name | ) |
|
Creates the object from the class name or namespace path.
- Example:
ConstructorMethod m(class_name);
- Parameters
-
class_name | the class name or namespace path for the method |
- Exceptions
-
UNKNOWN-CLASS | cannot find a class with the given name or path |
UNKOWN-METHOD | cannot find a constructor method for the given class |
The documentation for this class was generated from the following file:
- /export/home/dnichols/src/qore/git/qore/build/modules/reflection/QC_ConstructorMethod.dox.h