BooleanLiteral 布尔型字面量
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface BooleanLiteral {
"concept": "BooleanLiteral", // 产品概念
"value": string, // 字面量的值
}
class BooleanLiteralTreeNode {
ConceptEnum concept; // 产品概念
String value; // 字面量的值
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/BooleanLiteral",
"definitions": {
"BooleanLiteral": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "BooleanLiteral"
},
"value": {
"type": "string"
}
},
"required": [
"concept",
"value"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "BooleanLiteral",
"value": "true"
}
concept: BooleanLiteral
value: "true"