CallFunction 调用函数
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface CallFunction {
"concept": "CallFunction", // 产品概念
"label": string, // 调用函数标题
"calleeNamespace": string, // calleeNamespace
"calleeName": string, // calleeName
"shortcut": boolean, // shortcut
"typeArguments": Array<TypeAnnotation>, // 类型参数
"arguments": Array<Argument>, // 实际参数
}
class CallFunctionTreeNode {
ConceptEnum concept; // 产品概念
String label; // 调用函数标题
String calleeNamespace; // calleeNamespace
String calleeName; // calleeName
boolean shortcut; // shortcut
List<TypeAnnotationTreeNode> typeArguments; // 类型参数
List<ArgumentTreeNode> arguments; // 实际参数
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/CallFunction",
"definitions": {
"CallFunction": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "CallFunction"
},
"label": {
"type": "string"
},
"calleeNamespace": {
"type": "string"
},
"calleeName": {
"type": "string"
},
"shortcut": {
"type": "boolean"
},
"typeArguments": {
"type": "array",
"items": {
"$ref": "#/definitions/TypeAnnotation"
}
},
"arguments": {
"type": "array",
"items": {
"$ref": "#/definitions/Argument"
}
}
},
"required": [
"concept",
"label",
"calleeNamespace",
"calleeName",
"shortcut",
"typeArguments",
"arguments"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "CallFunction",
"label": "内置函数",
"calleeNamespace": null,
"calleeName": null,
"shortcut": null,
"typeArguments": null,
"arguments": []
}
concept: CallFunction
label: 内置函数
calleeNamespace: null
calleeName: null
shortcut: null
typeArguments: null
arguments: []