Complete script-facing contract for a native function or method. 更多...
#include <ScriptCompiler.h>
Public 成员函数 | |
| std::string | key () const |
| Stable lookup key in the form module/class.method. | |
| std::string | toJson () const |
Compact JSON object for one contract (eve.binding-api item). | |
Public 属性 | |
| std::string std::string | scriptClass |
| std::string | method |
| std::vector< BindingParameterContract > | parameters |
| std::string | returnType = "dynamic" |
| bool | returnNullable = false |
| std::string | ownership |
| std::string | threadAffinity = "main" |
| std::vector< std::string > | platforms |
| std::string | documentationId |
| std::string | source |
| Actual native registration location. | |
| std::string | cppSymbol |
| Direct member target; empty for unresolved lambda/dynamic targets. | |
| std::optional< BindingArchitectureContract > | architecture |
| Optional reviewed mapping; absence is explicitly reported as unknown. | |
| std::optional< BindingSemanticContract > | semantics |
| Engine-owned source semantics; never supplied by a project relation manifest. | |
详细描述
Complete script-facing contract for a native function or method.
在文件 ScriptCompiler.h 第 159 行定义.
成员函数说明
◆ key()
| std::string eve::script::BindingContract::key | ( | ) | const |
Stable lookup key in the form module/class.method.
在文件 ScriptCompiler.cpp 第 243 行定义.
引用了 method, result , 以及 scriptClass.
被这些函数引用 toJson().
◆ toJson()
| std::string eve::script::BindingContract::toJson | ( | ) | const |
Compact JSON object for one contract (eve.binding-api item).
- 返回
- UTF-8 JSON object with key, signatures, ownership and source.
在文件 ScriptCompiler.cpp 第 343 行定义.
引用了 architecture, c, cppSymbol, documentationId, index, key(), method, name, eve::script::None, ownership, parameter, parameters, platforms, returnNullable, returnType, scriptClass, semantics, source, threadAffinity , 以及 values.
类成员变量说明
◆ architecture
| std::optional<BindingArchitectureContract> eve::script::BindingContract::architecture |
Optional reviewed mapping; absence is explicitly reported as unknown.
在文件 ScriptCompiler.h 第 175 行定义.
被这些函数引用 toJson().
◆ cppSymbol
| std::string eve::script::BindingContract::cppSymbol |
Direct member target; empty for unresolved lambda/dynamic targets.
在文件 ScriptCompiler.h 第 173 行定义.
被这些函数引用 toJson().
◆ documentationId
| std::string eve::script::BindingContract::documentationId |
在文件 ScriptCompiler.h 第 169 行定义.
被这些函数引用 toJson().
◆ method
| std::string eve::script::BindingContract::method |
在文件 ScriptCompiler.h 第 162 行定义.
◆ ownership
| std::string eve::script::BindingContract::ownership |
在文件 ScriptCompiler.h 第 166 行定义.
被这些函数引用 toJson().
◆ parameters
| std::vector<BindingParameterContract> eve::script::BindingContract::parameters |
在文件 ScriptCompiler.h 第 163 行定义.
被这些函数引用 toJson().
◆ platforms
| std::vector<std::string> eve::script::BindingContract::platforms |
在文件 ScriptCompiler.h 第 168 行定义.
被这些函数引用 toJson().
◆ returnNullable
| bool eve::script::BindingContract::returnNullable = false |
在文件 ScriptCompiler.h 第 165 行定义.
被这些函数引用 toJson().
◆ returnType
| std::string eve::script::BindingContract::returnType = "dynamic" |
在文件 ScriptCompiler.h 第 164 行定义.
被这些函数引用 toJson().
◆ scriptClass
| std::string std::string eve::script::BindingContract::scriptClass |
在文件 ScriptCompiler.h 第 161 行定义.
◆ semantics
| std::optional<BindingSemanticContract> eve::script::BindingContract::semantics |
Engine-owned source semantics; never supplied by a project relation manifest.
在文件 ScriptCompiler.h 第 177 行定义.
被这些函数引用 toJson().
◆ source
| std::string eve::script::BindingContract::source |
◆ threadAffinity
| std::string eve::script::BindingContract::threadAffinity = "main" |
在文件 ScriptCompiler.h 第 167 行定义.
被这些函数引用 toJson().
该结构体的文档由以下文件生成:
- src/engine/common/ScriptCompiler.h
- src/engine/common/ScriptCompiler.cpp