PlantUML 1.2019.6 언어참조가이드
1.95 MB
172 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
韩语 | .pdf | 3 |
摘要 | ||
The PlantUML 1.2019.6 documentation guide covers preprocessing capabilities akin to C language preprocessor, variable definitions with global scope, participant declaration using various keywords, component and interface definitions with aliases, and introducing diagrams like Work Breakdown Structure using OrgMode syntax. It also describes changing diagram directions, using notes, and supports various other diagrams including Wireframe, Archimate, SDL, Ditaa, Gantt, MindMap, WBS, and mathematical notations. | ||
AI总结 | ||
《PlantUML 1.2019.6 参考指南》总结如下:
1. **预处理功能**
- 新的预处理器更新了旧的预处理器,部分旧功能仍兼容但不推荐使用。
- 取代旧功能的新功能包括:
- 使用 `!function` 和变量定义替代 `!define` 和 `!definelong`。
- `!include` 现支持多次包含和 URL,而非仅 `!include_many` 或 `!includeurl`。
- 部分功能(如 `%date%`)被内置函数(如 `%date()`)取代。
- 调用无参数的旧宏时需添加括号。
2. **变量定义**
- 变量名推荐以 `$` 开头。
- 数据类型分为整数和字符串(需用单引号或双引号括起来)。
- 全局变量可在任何地方访问,定义时可加 `global` 关键字加以强调。
3. **条件语句**
- 支持在条件中使用表达式,但具体语法未详述。
4. **序列图**
- 使用 `->` 创建实线箭头,`-->` 创建虚线箭头,`<-` 和 `<--` 创建逆向箭头。
- 可用 `participant` 定义参与者,并通过关键字如 `actor`、`boundary`、`control`、`entity`、`database` 等指定参与者类型。
5. **组件图**
- 组件需用 `[]` 包裹,定义时可用 `component` 关键字或 `as` 关键字定义别名。
- 接口用 `()` 定义,定义时可用 `interface` 关键字或 `as` 关键字定义别名。
- 连接符可用 `..>`、`-->`、`--` 等组合,方向和样式可通过关键字如 `left`、`right`、`up`、`down` 调整。
- 支持 UML2 表示法,通过 `skinparam componentStyle uml2` 启用。
6. **工作分解结构(WBS)图**
- 仍处于 Beta 版,语法可能变动。
- 支持 OrgMode 语法,通过 `*` 和 `**` 定义层级结构,方向可通过 `<` 和 `>` 调整。
7. **其他图表类型**
- 支持多种非 UML 图表,包括线框图界面、Archimate 图、SDL、Ditaa 图、甘特图、思维导图、WBS 图和数学表达式(使用 AsciiMath 或 JLaTeXMath)。
总结以上内容,PlantUML 是一个功能强大且灵活的工具,能够通过简洁的语言定义各种类型的图表,同时支持预处理和变量定义等高级功能。 |
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余
160 页请下载阅读 -
文档评分