起步¶
- 1. Groovy 安装
- 2. 与 Java 不同之处
- 2.1. Default imports
- 2.2. Multi-methods
- 2.3. Array initializers
- 2.4. Package scope visibility
- 2.5. ARM blocks
- 2.6. Inner classes
- 2.7. Lambdas
- 2.8. GStrings
- 2.9. String and Character literals
- 2.10. Primitives and wrappers
- 2.11. Behaviour of ==
- 2.12. Conversions
- 2.13. 新增关键字
- 2.14. default must be last in switch case
- 3. Groovy 开发包
- 4. 运行时&编译时元编程 (TBD)
- 5. Grape 依赖管理器
- 6. Test Guide
- 7. 领域专属语言 DSL (TBD)
- 8. 应用集成 Groovy
- 9. Groovy 中的设计模式 (TBD)
- 10. 编码风格
- 10.1. 无需分号
- 10.2. Def and type
- 10.3. 默认为 Public (Public by default)
- 10.4. 省略括号
- 10.5. Classes as first-class citizens
- 10.6. Getters and Setters
- 10.7. 使用命名参数初始化 beans
- 10.8. Using with() for repeated operations on the same bean
- 10.9. Equals and ==
- 10.10. GStrings (插值,多行赋值)
- 10.11. Native syntax for data structures
- 10.12. The Groovy Development Kit
- 10.13. The Power of switch
- 10.14. Import aliasing
- 10.15. Groovy Truth
- 10.16. Safe graph navigation
- 10.17. Assert
- 10.18. Elvis operator for default values
- 10.19. Catch any exception
- 10.20. Optional typing advice