Skip to main content
Version: 3.10

ParamWithGroup 带分组的参数

1. 结构声明

class ParamWithGroup extends Param {
title: string;
group!: string;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "ParamWithGroup",
"name": "size",
"title": "大小",
"group": "分组1",
"description": "",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Long",
"inferred": false,
"ruleMap": {}
}
}

对应的代码如下:

@(
title = "大小",
group = "分组1",
)
size: Integer