Qore Programming Language  0.9.3
LocalMethodCallReferenceNode Class Reference

a call reference to a static user method More...

#include <CallReferenceNode.h>

Inheritance diagram for LocalMethodCallReferenceNode:
Collaboration diagram for LocalMethodCallReferenceNode:

Public Member Methods

virtual DLLLOCAL QoreValue execValue (const QoreListNode *args, ExceptionSink *xsink) const
 pure virtual function for executing the function reference 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
 
- Public Member Methods inherited from LocalStaticMethodCallReferenceNode
virtual DLLLOCAL QoreFunction * getFunction ()
 Returns the internal function object, if any; can return nullptr.
 

Private Member Methods

virtual DLLLOCAL QoreValue evalImpl (bool &needs_deref, ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly More...
 

Detailed Description

a call reference to a static user method

Member Function Documentation

◆ evalImpl()

virtual DLLLOCAL QoreValue LocalMethodCallReferenceNode::evalImpl ( bool &  needs_deref,
ExceptionSink xsink 
) const
privatevirtual

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from LocalStaticMethodCallReferenceNode.

◆ execValue()

virtual DLLLOCAL QoreValue LocalMethodCallReferenceNode::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)

Reimplemented from LocalStaticMethodCallReferenceNode.


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