1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QV4REFLECT_H
4#define QV4REFLECT_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include "qv4object_p.h"
18
19QT_BEGIN_NAMESPACE
20
21namespace QV4 {
22
23namespace Heap {
24
25struct Reflect : Object {
26 void init();
27};
28
29}
30
31struct Reflect : Object {
32 V4_OBJECT2(Reflect, Object)
33
34 static ReturnedValue method_apply(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
35 static ReturnedValue method_construct(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
36 static ReturnedValue method_defineProperty(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
37 static ReturnedValue method_deleteProperty(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
38 static ReturnedValue method_get(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
39 static ReturnedValue method_getOwnPropertyDescriptor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
40 static ReturnedValue method_getPrototypeOf(const FunctionObject *, const Value *, const Value *argv, int argc);
41 static ReturnedValue method_has(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
42 static ReturnedValue method_isExtensible(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
43 static ReturnedValue method_ownKeys(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
44 static ReturnedValue method_preventExtensions(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
45 static ReturnedValue method_set(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
46 static ReturnedValue method_setPrototypeOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
47};
48
49}
50
51QT_END_NAMESPACE
52
53#endif
54

source code of qtdeclarative/src/qml/jsruntime/qv4reflect_p.h