This class provides information about Qore static class methods.
More...
This class provides information about Qore static class methods.
- Restrictions:
- Qore::PO_NO_REFLECTION
- See also
- StaticMethodVariant
- Since
- Qore 0.9.0
◆ call()
auto Qore::Reflection::StaticMethod::call |
( |
|
... | ) |
|
calls the given method with the given arguments
- Example:
auto v = m.call(arg1, arg2);
- Parameters
-
... | optional arguments to the method |
- Returns
- the return value of the method call
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class and method has been destroyed |
- See also
- callArgs()
◆ callArgs()
auto Qore::Reflection::StaticMethod::callArgs |
( |
*softlist< auto > |
argv | ) |
|
calls the given method with the given arguments as a list
- Example:
auto v = m.callArgs(argv);
- Parameters
-
argv | optional arguments to the method |
- Returns
- the return value of the method call
- Exceptions
-
PROGRAM-ERROR | thrown if the Program object holding the class and method has been destroyed |
- See also
- call()
◆ constructor() [1/2]
Qore::Reflection::StaticMethod::constructor |
( |
Class |
cls, |
|
|
string |
method |
|
) |
| |
Creates the object from the class and static method name.
- Example:
StaticMethod m(cls, name);
- Parameters
-
cls | the class for the method |
method | the static method name |
- Exceptions
-
UNKOWN-METHOD | cannot find a static method with the given name |
◆ constructor() [2/2]
Qore::Reflection::StaticMethod::constructor |
( |
string |
class_name, |
|
|
string |
method |
|
) |
| |
Creates the object from the class name or namespace path and static method name.
- Example:
StaticMethod m(class_name, method_name);
- Parameters
-
class_name | the class name or namespace path for the method |
method | the static method name |
- Exceptions
-
UNKNOWN-CLASS | cannot find a class with the given name or path |
UNKOWN-METHOD | cannot find a static method with the given name |
The documentation for this class was generated from the following file: