Qore Programming Language  0.9.16
RunTimeObjectMethodReferenceNode Class Reference

a run-time call reference to a method of a particular object More...

#include <CallReferenceNode.h>

Inherits ResolvedCallReferenceNodeIntern.

Public Member Methods

virtual DLLLOCAL QoreValue execValue (const QoreListNode *args, ExceptionSink *xsink) const
 pure virtual function for executing the function reference More...
 
virtual DLLLOCAL QoreFunction * getFunction ()
 Returns the internal function object, if any; can return nullptr.
 
virtual DLLLOCAL QoreProgramgetProgram () const
 returns a pointer to the QoreProgram object associated with this reference (can be nullptr) More...
 
virtual DLLLOCAL bool is_equal_hard (const AbstractQoreNode *v, ExceptionSink *xsink) const
 returns true if the other node is the same value
 
virtual DLLLOCAL bool is_equal_soft (const AbstractQoreNode *v, ExceptionSink *xsink) const
 returns true if the other node is the same value
 

Detailed Description

a run-time call reference to a method of a particular object

Member Function Documentation

◆ execValue()

virtual DLLLOCAL QoreValue RunTimeObjectMethodReferenceNode::execValue ( const QoreListNode args,
ExceptionSink xsink 
) const
virtual

pure virtual function for executing the function reference

executes the function reference and returns the value returned

Parameters
argsthe arguments to the function
xsinkany Qore-language exception thrown (and not handled) will be added here
Returns
a pointer to an AbstractQoreNode, the caller owns the reference count returned (can also be nullptr)

Implements ResolvedCallReferenceNode.

◆ getProgram()

virtual DLLLOCAL QoreProgram* RunTimeObjectMethodReferenceNode::getProgram ( ) const
virtual

returns a pointer to the QoreProgram object associated with this reference (can be nullptr)

this function is not exported in the library's public interface

Returns
a pointer to the QoreProgram object associated with this reference (can be nullptr)

Reimplemented from ResolvedCallReferenceNode.


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