做菜与洗碗
今天晚饭,老婆连着用了4个锅来做了两菜一汤。好吃 :lol: 其中一道菜用了1个锅,另一道菜用了3个锅,汤用了2个锅。还有中间工序放临时状态的食材用的大小碗碟若干。嗯⋯嗯?但是总共只有4个锅诶。于是做菜的过程中我也洗了几次碗。突然想起了什么⋯老婆做菜跟我洗碗的关系,就是mutator与collector的关系!老婆作为mutator,做菜途中不断在切换工序的...
Programming Languages
Ruby
C#
DLR
F#
Python
Scheme
Haskell
Regular Expression
Compiler
ECMAScript
JavaScript
ActionScript
Squirrel
C
C++
D
Virtual Machine
.NET
Mono
SSCLI Rotor
Java
Harmony
Scala
Groovy
Optimization
Data Structure and Algorithm
Books
WPF
Game Engines
吉里吉里
UML
Reverse Engineering
NSIS
Utilities
Design Patterns
Visual Studio
Windows 7
x86 Assembler
Android
School Assignment / Test
Anti-virus
REST
Profiling
misc
NetOA
rant
anime
Links
Rhino
LINQ
CLR
GC
HotSpot VM
Garbage Collection
JVM
Dalvik
OpenJDK 

[quote="JE帐号"][quote="RednaxelaFX"]Lombok不是通过字节码改写来实现的。
它主要是用编译器内支持的annotation processing,直接操纵抽象语法树(AST),根据需要添加新节点。
以javac为例的话,请参考官方文档:[url]http://openjdk.java.net/groups/compiler/doc/compilation-overview/index.html[/url][/quote]
记得在 <> 技术里好像看到过annotation processing, 但是我印象那个是说给用APT工具来根据注释生成额外的内容.
能稍微再讲解一些么.thx.
[/quote]
那么先读一下这篇文章或许有帮助:[url=http://www.ibm.com/developerworks/cn/java/j-lombok/?ca=drs-]利用 Project Lombok 自定义 AST 转换[/url]