a method in a QoreClass More...
#include <QoreClass.h>
Public Member Functions | |
DLLEXPORT bool | isSynchronized () const |
DEPRECATED: always returns false, do not use. | |
DLLEXPORT bool | newCallingConvention () const |
DEPRECATED: always returns false, do not use. | |
DLLEXPORT bool | isUser () const |
returns true if all variants of the method are user variants | |
DLLEXPORT bool | isBuiltin () const |
returns true if all variants of the method are builtin variants | |
DLLEXPORT bool | isPrivate () const |
returns true if all overloaded variants of a methods are private, false if at least one variant is public | |
DLLEXPORT bool | isStatic () const |
returns true if the method is static | |
DLLEXPORT const char * | getName () const |
returns the method's name | |
DLLEXPORT const QoreClass * | getClass () const |
returns a pointer to the parent class | |
DLLEXPORT const char * | getClassName () const |
returns the class name for the method | |
DLLEXPORT bool | existsVariant (const type_vec_t ¶mTypeInfo) const |
returns true if a variant with the given parameter signature already exists in the method | |
DLLLOCAL bool | parseIsPrivate () const |
returns true if all overloaded variants of a methods are private, false if at least one variant is public (including pending uncommitted variants) | |
DLLLOCAL AbstractQoreNode * | eval (QoreObject *self, const QoreListNode *args, ExceptionSink *xsink) const |
evaluates the method and returns the result | |
Friends | |
class | QoreObject |
a method in a QoreClass
methods can be implemented in the Qore language (user methods) or in C++ (builtin methods)
DLLLOCAL AbstractQoreNode* QoreMethod::eval | ( | QoreObject * | self, | |
const QoreListNode * | args, | |||
ExceptionSink * | xsink | |||
) | const |
evaluates the method and returns the result
should only be called by QoreObject; use QoreObject::evalMethod(const QoreMethod &meth, const QoreListNode *args, ExceptionSink *xsink) instead
self | a pointer to the object the method will be executed on | |
args | the list of arguments to the method | |
xsink | if an error occurs, the Qore-language exception information will be added here |
DLLEXPORT const char* QoreMethod::getName | ( | ) | const |
returns the method's name
DLLEXPORT bool QoreMethod::isBuiltin | ( | ) | const |
returns true if all variants of the method are builtin variants
DLLEXPORT bool QoreMethod::isPrivate | ( | ) | const |
returns true if all overloaded variants of a methods are private, false if at least one variant is public
DLLEXPORT bool QoreMethod::isStatic | ( | ) | const |
returns true if the method is static
DLLEXPORT bool QoreMethod::isSynchronized | ( | ) | const |
DEPRECATED: always returns false, do not use.
this method no longer returns useful information due to method overloading
DLLEXPORT bool QoreMethod::isUser | ( | ) | const |
returns true if all variants of the method are user variants
DLLEXPORT bool QoreMethod::newCallingConvention | ( | ) | const |
DEPRECATED: always returns false, do not use.
this method no longer returns useful information due to method overloading
DLLLOCAL bool QoreMethod::parseIsPrivate | ( | ) | const |
returns true if all overloaded variants of a methods are private, false if at least one variant is public (including pending uncommitted variants)