Benx Blog

三月 11, 2007

Diigo Diary Bookmarks 03/10/2007

Filed under: Diigo Diary — benxshen @ 8:30 上午

Groovy – Processing XML

    Groovy – GPath

      Groovy – Modules

        Groovy – Closures

          Groovy – Differences from Java  Annotated

            Things to be aware of

            • semicolon is optional. Use them if you like (though you must use them to put several statements on one line).
            • the return keyword is optional.
            • you can use the this keyword inside static methods (which refers to this class).
            • methods and classes are public by default.
            • protected in Groovy is the equivalent of both package-protected and protected in Java. i.e. you can have friends in the same package – or derived classes can also see protected members.
            • inner classes are not supported at the moment. In most cases you can use closures instead.
            • the throws clause in method heads is not checked by the Groovy compiler, because there is no difference between checked and unchecked exceptions.

              Groovy – GSQL

                Groovy – Tutorial 4 – Regular expressions basics  Annotated

                  the simplest expression involving a regular expression uses the ==~ operator. So for example to match Dan Quayle’s spelling of ‘potato’:

                  "potatoe" ==~ /potatoe/

                    Groovy – Beginners Tutorial

                      發表迴響 »

                      仍無迴響。

                      RSS feed for comments on this post. TrackBack URI

                      發表迴響

                      在下方填入你的資料或按右方圖示以社群網站登入:

                      WordPress.com Logo

                      You are commenting using your WordPress.com account. Log Out / 變更 )

                      Twitter picture

                      You are commenting using your Twitter account. Log Out / 變更 )

                      Facebook照片

                      You are commenting using your Facebook account. Log Out / 變更 )

                      Google+ photo

                      You are commenting using your Google+ account. Log Out / 變更 )

                      連結到 %s

                      在WordPress.com寫網誌.

                      %d 位部落客按了讚: