32 #ifndef _QORE_SCOPEDOBJECTCALLNODE_H
34 #define _QORE_SCOPEDOBJECTCALLNODE_H
36 #include "qore/intern/FunctionCallNode.h"
37 #include "qore/intern/QoreParseListNode.h"
39 class ScopedObjectCallNode :
public AbstractFunctionCallNode {
45 DLLLOCAL ScopedObjectCallNode(
const QoreProgramLocation* loc, NamedScope* n, QoreParseListNode* a) : AbstractFunctionCallNode(loc,
NT_SCOPE_REF, a), name(n), oc(nullptr) {
48 DLLLOCAL ScopedObjectCallNode(
const QoreProgramLocation* loc,
const QoreClass* qc, QoreParseListNode* a) : AbstractFunctionCallNode(loc,
NT_SCOPE_REF, a), name(nullptr), oc(qc) {
51 DLLLOCAL
virtual ~ScopedObjectCallNode() {
55 DLLLOCAL
int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context);
63 str.
sprintf(
"new operator expression (class '%s')", oc ? oc->
getName() : name ? name->ostr :
"<null>",
this);
71 getAsString(*rv, foff, xsink);
81 DLLLOCAL
virtual const char* getTypeName()
const {
82 return "new object call";
86 DLLLOCAL
virtual const char* getName()
const {
94 DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
defines a Qore-language class
Definition: QoreClass.h:249
DLLEXPORT const QoreTypeInfo * getTypeInfo() const
returns the type information structure for this class
DLLEXPORT const char * getName() const
returns the class name
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
DLLEXPORT int sprintf(const char *fmt,...)
this will concatentate a formatted string to the existing string according to the format string and t...
DLLEXPORT const char * getBuffer() const
returns the string's buffer; this data should not be changed
int16_t qore_type_t
used to identify unique Qore data and parse types (descendents of AbstractQoreNode)
Definition: common.h:70
const qore_type_t NT_SCOPE_REF
type value for ScopedObjectCallNode
Definition: node_types.h:61
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275