Return 输出参数
1. 结构声明
- TS Declaration
- JSON Schema
class Return extends BaseNode {
name: string = '';
description?: string;
typeAnnotation?: TypeAnnotation;
defaultValue?: DefaultValue;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"typeAnnotation": {
"$ref": "#/definitions/TypeAnnotation"
},
"defaultValue": {
"$ref": "#/definitions/DefaultValue"
}
},
"required": [
"name"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "Return",
"name": "result",
"description": ""
}
concept: Return
name: result
description: ""
对应的代码如下:
- 文本化 NASL
- Natural TS
result
result