New 构造器
1. 结构声明
- TS Declaration
- JSON Schema
class New extends LogicItem {}
{
"type": "object",
"additionalProperties": false,
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
}
}
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "New"
}
concept: New
对应的代码如下:
- 文本化 NASL
{ __EXPRESSSIONS__ }