Qore Programming Language  0.9.0
QoreMethod Class Reference

a method in a QoreClass More...

#include <QoreClass.h>

Public Member Methods

DLLEXPORT QoreValue execManaged (QoreObject *self, const QoreListNode *args, ExceptionSink *xsink) const
 evaluates the method and returns the value, does not reference the object for the call More...
 
DLLEXPORT QoreValue execManaged (QoreObject *self, const QoreListNode *args, ExceptionSink *xsink) const
 evaluates the method and returns the value, does not reference the object for the call More...
 
DLLEXPORT bool existsVariant (const type_vec_t &paramTypeInfo) const
 returns true if a variant with the given parameter signature already exists in the method
 
DLLEXPORT bool existsVariant (const type_vec_t &paramTypeInfo) const
 returns true if a variant with the given parameter signature already exists in the method
 
DLLEXPORT ClassAccess getAccess () const
 returns the lowest access code of all variants in the method
 
DLLEXPORT ClassAccess getAccess () const
 returns the lowest access code of all variants in the method
 
DLLEXPORT const QoreClassgetClass () const
 returns a pointer to the parent class
 
DLLEXPORT const QoreClassgetClass () const
 returns a pointer to the parent class
 
DLLEXPORT const char * getClassName () const
 returns the class name for the method
 
DLLEXPORT const char * getClassName () const
 returns the class name for the method
 
DLLEXPORT const QoreExternalMethodFunction * getFunction () const
 returns the function for the method More...
 
DLLEXPORT const QoreExternalMethodFunction * getFunction () const
 returns the function for the method More...
 
DLLEXPORT method_type_e getMethodType () const
 returns the type of method More...
 
DLLEXPORT method_type_e getMethodType () const
 returns the type of method More...
 
DLLEXPORT const char * getName () const
 returns the method's name More...
 
DLLEXPORT const char * getName () const
 returns the method's name More...
 
DLLEXPORT const std::string & getNameStr () const
 returns the method's name More...
 
DLLEXPORT const std::string & getNameStr () const
 returns the method's name More...
 
DLLEXPORT bool isBuiltin () const
 returns true if all variants of the method are builtin variants More...
 
DLLEXPORT bool isBuiltin () const
 returns true if all variants of the method are builtin variants More...
 
DLLEXPORT bool isPrivate () const
 returns true if all overloaded variants of a methods are private or class internal, false if at least one variant is public More...
 
DLLEXPORT bool isPrivate () const
 returns true if all overloaded variants of a methods are private or class internal, false if at least one variant is public More...
 
DLLEXPORT bool isStatic () const
 returns true if the method is static More...
 
DLLEXPORT bool isStatic () const
 returns true if the method is static More...
 
DLLEXPORT bool isUser () const
 returns true if all variants of the method are user variants More...
 
DLLEXPORT bool isUser () const
 returns true if all variants of the method are user variants More...
 

Friends

class QoreObject
 

Detailed Description

a method in a QoreClass

methods can be implemented in the Qore language (user methods) or in C++ (builtin methods)

See also
QoreClass

Member Function Documentation

◆ execManaged() [1/2]

DLLEXPORT QoreValue QoreMethod::execManaged ( QoreObject self,
const QoreListNode args,
ExceptionSink xsink 
) const

evaluates the method and returns the value, does not reference the object for the call

Note
this method should only be used when the caller can guarantee that the object will not go out of scope during the call
Since
Qore 0.8.12

◆ execManaged() [2/2]

DLLEXPORT QoreValue QoreMethod::execManaged ( QoreObject self,
const QoreListNode args,
ExceptionSink xsink 
) const

evaluates the method and returns the value, does not reference the object for the call

Note
this method should only be used when the caller can guarantee that the object will not go out of scope during the call
Since
Qore 0.8.12

◆ getFunction() [1/2]

DLLEXPORT const QoreExternalMethodFunction* QoreMethod::getFunction ( ) const

returns the function for the method

Since
Qore 0.9

◆ getFunction() [2/2]

DLLEXPORT const QoreExternalMethodFunction* QoreMethod::getFunction ( ) const

returns the function for the method

Since
Qore 0.9

◆ getMethodType() [1/2]

DLLEXPORT method_type_e QoreMethod::getMethodType ( ) const

returns the type of method

Since
Qore 0.9

◆ getMethodType() [2/2]

DLLEXPORT method_type_e QoreMethod::getMethodType ( ) const

returns the type of method

Since
Qore 0.9

◆ getName() [1/2]

DLLEXPORT const char* QoreMethod::getName ( ) const

returns the method's name

Returns
the method's name

◆ getName() [2/2]

DLLEXPORT const char* QoreMethod::getName ( ) const

returns the method's name

Returns
the method's name

◆ getNameStr() [1/2]

DLLEXPORT const std::string& QoreMethod::getNameStr ( ) const

returns the method's name

Returns
the method's name

◆ getNameStr() [2/2]

DLLEXPORT const std::string& QoreMethod::getNameStr ( ) const

returns the method's name

Returns
the method's name

◆ isBuiltin() [1/2]

DLLEXPORT bool QoreMethod::isBuiltin ( ) const

returns true if all variants of the method are builtin variants

Returns
true if all variants of the method are builtin variants

◆ isBuiltin() [2/2]

DLLEXPORT bool QoreMethod::isBuiltin ( ) const

returns true if all variants of the method are builtin variants

Returns
true if all variants of the method are builtin variants

◆ isPrivate() [1/2]

DLLEXPORT bool QoreMethod::isPrivate ( ) const

returns true if all overloaded variants of a methods are private or class internal, false if at least one variant is public

Returns
true if all overloaded variants of a methods are private or class internal, false if at least one variant is public

◆ isPrivate() [2/2]

DLLEXPORT bool QoreMethod::isPrivate ( ) const

returns true if all overloaded variants of a methods are private or class internal, false if at least one variant is public

Returns
true if all overloaded variants of a methods are private or class internal, false if at least one variant is public

◆ isStatic() [1/2]

DLLEXPORT bool QoreMethod::isStatic ( ) const

returns true if the method is static

Returns
true if the method is static

◆ isStatic() [2/2]

DLLEXPORT bool QoreMethod::isStatic ( ) const

returns true if the method is static

Returns
true if the method is static

◆ isUser() [1/2]

DLLEXPORT bool QoreMethod::isUser ( ) const

returns true if all variants of the method are user variants

Returns
true if all variants of the method are user variants

◆ isUser() [2/2]

DLLEXPORT bool QoreMethod::isUser ( ) const

returns true if all variants of the method are user variants

Returns
true if all variants of the method are user variants

The documentation for this class was generated from the following file: