Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
7 user(s) are online (7 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Groovy

Groovy is both a coloquialism and an object-oriented programming language designed for the Java platform as an alternative to Java programming language with features from Python programming language, Ruby programming language and Smalltalk.

The coloquialism extends primarily from 60 s subculture, describing when something is in the groove .

As for the programming language: Groovy uses a Java-like syntax which is dynamically compiled to Java Virtual Machine bytecodes and that works seamlessly with other Java code and Library (computer science). The Groovy Compiler can be used as an alternative to javac to generate standard Java bytecode to be used by any Java project or it can be used dynamically as a scripting language.

Groovy is currently undergoing standardization through the Java Community Process with the [http://www.jcp.org/en/jsr/detailid=241 JSR 241].

=Examples=

class Foo { def doSomething() { def data = [ name : James , location : London ] for (e in data) { println( entry ${e.key} is ${e.value} ) } }

def closureExample(collection) { collection.each { println( value ${it} ) } }

static void main(args) { def values = [1, 2, 3, abc ] def foo = new Foo() foo.closureExample(values) foo.doSomething() } }

=External links=

  • [http://groovy.codehaus.org/ Official site]