摘要: Metaprogramming 使groovy动态语言的特性发挥的淋漓尽致(Metaprogramming is writing code that has the ability to dynamicallychange its behavior at runtime.)如下是这方面的知识一个汇总1. 类Discovering the Classdef s = "Hello"printlns.classprintlns.getClass()String.constructors.each{println it}println ""String.inte 阅读全文
posted @ 2011-04-11 21:52 2012 阅读(737) 评论(0) 推荐(0) 编辑