Groovyとは ...
| Excerpt |
|---|
|
- is an agile and dynamic language for the Java Virtual Machine
|
Java仮想マシン(JVM) 向けの アジャイルダイナミック言語 です。
| Excerpt |
|---|
|
- builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk
|
Javaの長所の上に構築されていますが、Python、Ruby、そしてSmalltalkのような言語に触発された 強力な追加機能 を持っています。
| Excerpt |
|---|
|
- makes modern programming features available to Java developers with almost-zero learning curve
|
ほとんどゼロの学習曲線 で 現代的なプログラミング機能 をJava開発者が利用できるようになります。
| Excerpt |
|---|
|
- supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain
|
ドメイン固有言語(DSL)
をサポートし、その他の構文のコンパクトなので、コードは をサポートし、その他の構文もコンパクトなので、読みやすくメンテナンスしやすい
ものとなります。 コードになります。
| Excerpt |
|---|
|
- makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL
|
強力なプリミティブ処理 とオブジェクト指向(OO)能力、そしてAnt
DSLによって、シェルやビルドスクリプトを書くことを簡単にしてくれます。DSLによって、シェルやビルドスクリプトの記述を簡単にしてくれます。
| Excerpt |
|---|
|
- increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications
|
- スカッフォルド(足場)コードを編集し減らしてゆく ことによりWEB、GUI、データベース、コンソールアプリケーション開発で生産的な追加的開発が行えます。
定型的に書かなければならないコード量が減る ことにより、Web、GUI、データベース、コンソールアプリケーションなどの開発で生産性が向上します。
| Excerpt |
|---|
|
- simplifies testing by supporting unit testing and mocking out-of-the-box
|
- ユニットテストとすぐに使えるモックを備えているので、
すぐに使えるユニットテストとモックの仕組みを備えているので、 テストが単純化 されます。
| Excerpt |
|---|
|
- seamlessly integrates with all existing Java classes and libraries
|
シームレスに
既存のJavaクラスとライブラリと統合 既存のあらゆるJavaクラスとライブラリを統合 できます。
| Excerpt |
|---|
|
- compiles straight to Java bytecode so you can use it anywhere you can use Java
|
- 直接Javaバイトコードに変換されるため、Javaを利用する場面ならどこでも利用可能です。直接Javaバイトコードにコンパイルされるため、Javaを利用できる環境ならどこでも利用可能です。
...
...
...
Groovy 2.
...
1を体験してみましょう!
...
...
...
...
...
...
alternative language for the JVM |
|
...
. To learn more about the novelties, make sure |
|
...
...
Image Removed JVM向け動的言語として人気のある Groovy 1.8 の最新 メジャー安定バージョン がリリースされました。新規性を学習するには リリースノートを読んで 確かめてみて下さい。一言で言えば、Groovy 1.8 ではドメイン固有言語のオーサリング機能による可読性とビジネスルールの表現性の向上、実行時パフォーマンスの改善、GParsの平行・並列ライブラリの同梱、内蔵JSONサポート、新しいコンパイル時のメタプログラミング機能 (いくつかの新しい便利AST変換)、新しい関数型プログラミングのクロージャへの追加、など他にも多くあります。
2.1 - offers full support for the JDK 7 “invoke dynamic” bytecode instruction and API for improved performance,
- goes beyond conventional static type checking capabilities with a special annotation to assist with documentation and type safety of Domain-Specific Languages and adds static type checker extensions,
- provides additional compilation customization options,
- features a meta-annotation facility for combining annotations elegantly,
- and provides various other enhancements and minor improvements.
|
|
Image Added
| JVM言語として人気の Groovy から、最新のメジャー安定バージョン Groovy 2.1 がリリースされました。新機能をしっかり学ぶなら、 リリースノートを読んで 確かめてみて下さい。簡単に説明すると… |
| Section |
|---|
| Column |
|---|
| | Excerpt |
|---|
| "Groovy is like a super version of Java. It can leverage Java's enterprise capabilities but also has cool productivity features like closures, builders and dynamic typing. If you are a developer, tester or script guru, you have to love Groovy." |
"GroovyはJavaのスーパーバージョンのようなものです。Javaのエンタープライズ機能に活用できるだけではなく、クロージャ、ビルダー、そして動的型付けのような生産的で洗練された機能も持ち合わせています。もしあなたが開発者、テスター、スクリプトの達人ならGroovyは愛して止まない存在になるでしょう。GroovyはJavaをもっとすごくしたようなものです。Javaのエンタープライズ機能を活用できるだけではなく、クロージャ、ビルダー、そして動的型付けのような生産的で洗練された機能も持ち合わせています。もしあなたが開発者やテスター、スクリプトの達人とかなら、Groovyは愛して止まない存在になることでしょう。"

| Panel |
|---|
| bgColor | White |
|---|
| borderStyle | none |
|---|
| | |
|
| Column |
|---|
| サンプル| Excerpt |
|---|
| A simple hello world script: |
簡単な"ハローワールド"スクリプト
| Code Block |
|---|
def name='World'; println "Hello $name!"
|
| Excerpt |
|---|
| A more sophisticated version using Object Orientation: |
オブジェクト指向な、より洗練されたバージョン
| Code Block |
|---|
class Greet {
def name
Greet(who) { name = who[0].toUpperCase() +
who[1..-1] }
def salute() { println "Hello $name!" }
}
g = new Greet('world') // オブジェクトを作成
g.salute() // "Hello World!" を出力
|
| Excerpt |
|---|
| Leveraging existing Java libraries: |
既存のJavaライブラリを活用
| Code Block |
|---|
import static org.apache.commons.lang.WordUtils.*
class Greeter extends Greet {
Greeter(who) { name = capitalize(who) }
}
new Greeter('world').salute()
|
| Excerpt |
|---|
| On the command line: |
コマンドラインで
| Code Block |
|---|
groovy -e "println 'Hello ' + args[0]" World
|
|
|
日本語翻訳について
| Excerpt |
|---|
|
Documentation [more] |
| Section |
|---|
| Column |
|---|
| Excerpt |
|---|
| Image Modified Getting Started Guide How to install and begin using Groovy as well as introductory tutorials.
|
スタートアップガイド インストール方法やGroovyを使い始めるための入門チュートリアル。
| Excerpt |
|---|
| Image Modified User Guide Provides information about using the Groovy language including language facilities, libraries and programming guidelines.
|
ユーザーガイド Groovyの言語機能、ライブラリ、およびプログラミングのガイドラインなどの使用に関する情報を提供します。
| Excerpt |
|---|
| Image Modified Cookbook Examples Illustrates larger examples of using Groovy in the Wild with a focus on applications or tasks rather than just showing off the features, APIs or modules.
|
クックブックサンプル Groovyを利用した大規模な例を、APIやモジュールの機能ではなく、アプリケーションやタスクに焦点を当てて解説します。
|
| Column |
|---|
| Excerpt |
|---|
| Image Modified Developer Guide Contains information mainly of interest to the developers involved in creating Groovy and its supporting modules and tools.
|
開発者ガイド 主にGroovyのモジュールやツールの開発者に興味のある情報が含まれています。
| Excerpt |
|---|
| Image Modified Testing Guide Contains information of relevance to those writing developer tests or systems and acceptance tests.
|
テスティングガイド 開発者が書くテスト、システムテスト、受け入れテストに関連する情報が含まれています。
| Excerpt |
|---|
| Image Modified Advanced Usage Guide Covers topics which you don't need to worry about initially when using Groovy but may want to dive into to as you strive for Guru status.
|
高度な利用法ガイド Groovy使いの達人になろうと努力し始めたときに心配する必要がないようなトピックをカバーします。
|
|
| Excerpt |
|---|
|
Enjoy making your code groovier !!!! |
グルービーなコードを楽しもう!!!
最新ニュース
| Excerpt |
|---|
|
If you wish to stay up-to-date with our vibrant community, you can learn more about: |
活気あるコミュニティーで最新の更新情報を確認したいなら、詳細を知ることができます。