UnaryExpression 一元表达式
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface UnaryExpression {
"concept": "UnaryExpression", // 产品概念
"argument": LogicItem, // 参数
"operator": "!" | "isNull", // 运算符
}
class UnaryExpressionTreeNode {
ConceptEnum concept; // 产品概念
LogicItemTreeNode argument; // 参数
OperatorEnum operator; // 运算符
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/UnaryExpression",
"definitions": {
"UnaryExpression": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "UnaryExpression"
},
"argument": {
"$ref": "#/definitions/LogicItem"
},
"operator": {
"type": "string",
"enum": [
"!",
"isNull"
]
}
},
"required": [
"concept",
"argument",
"operator"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "UnaryExpression",
"argument": null,
"operator": null
}
concept: UnaryExpression
argument: null
operator: null