Skip to main content
Version: 3.10

QueryLimitExpression 查询分页子句

1. 结构声明

class QueryLimitExpression extends LogicItem {
pageElement: LogicItem;
pageSizeElement: LogicItem;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "QueryLimitExpression",
"pageElement": {
"concept": "NumericLiteral",
"value": "1",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Long",
"inferred": false,
"ruleMap": {}
}
},
"pageSizeElement": {
"concept": "NumericLiteral",
"value": "1000",
"typeAnnotation": {
"concept": "TypeAnnotation",
"typeKind": "primitive",
"typeNamespace": "nasl.core",
"typeName": "Long",
"inferred": false,
"ruleMap": {}
}
}
}

对应的代码如下:

page 1 size 1000

(2) 示例

AST 如下:

{
"concept": "QueryLimitExpression",
"pageElement": {
"concept": "Identifier",
"namespace": "",
"name": "page"
},
"pageSizeElement": {
"concept": "Identifier",
"namespace": "",
"name": "size"
}
}

对应的代码如下:

page \$\{page} size \$\{size}