Groovy is a JVM-based agile development language that combines many powerful features of Python, Ruby and SmallTalk. Java developers can use similar syntax similar to Java to support these features.
Groovy is designed to help you complete things in a fast, more concise and interesting manner on the Java platform, bring Python and Ruby's power to the Java platform.
Groovy can be used as an optional compiler of Java to generate a standard Java bytecode and is used in any Java project. Groovy can be used as a dynamic optional language, such as scriptization Java objects, template, and writing unit test cases.
The main features of Groovy (will be introduced one by one in subsequent articles):
l Closure support
l Local List and MAP syntax
l Groovy tag: Support multiple markers, such as XML, HTML, SAX, W3C DOM
l Groovy Path Expression Language: Similar XPath
l Groovlet: Realize servlet with simple Groovy scripts
l Groovy SQL: Make more simple work with SQL
l Groovy bean: Simple syntax work together with bean
l Groovy template engine: Simple use, integrated GPath and compiled zycodes
l Ant scriptization
l Regular expression: Simple script syntax uses regular expressions
l Operators Overload: Simplify the data type of Collection and MAP
l Multi-form Itemion and Autoboxing
l Compile directly into Java bytecode, very clean and work together with all existing Java objects and class libraries.