タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

Builderに関するfumokmmのブックマーク (2)

  • Groovy - FactoryBuilderSupport

    SwingBuilder is one of the most used Groovy builders. It follows the standard structure of BuilderSupport but uses the concept of factories to build each node. Seeing that the concept was useful enough for other builders the basic implementation was taken out of SwingBuilder and FactoryBuilderSupport was born (and SwingBuilder was retrofitted of course). How Builders Work The Factory interface is

  • Builderとは何か - uehaj's blog

    Builderというのは、Groovyのとても特徴的な機能だと思います。たとえば、MarkupBuilder。 new MarkupBuilder().root { a( a1:'one' ) { b { mkp.yield( '3 < 5' ) } c( a2:'two', 'blah' ) } } こんなんを書くと、 <root> <a a1='one'> <b>3 &lt; 5</b> <c a2='two'>blah</c> </a> </root> こんなのが表示されます。 でこれは何なのか? いったい何が起きているのでしょうか。 いっけん、root,a,b,cというメソッドを呼び出していますが、それらのメソッドはあらかじめ存在しているわけではありません。なのに呼び出している。実行もできている。なぜそんなことが成立するかというと、Groovyが、その「メソッド呼び出し」をメタレベ

    Builderとは何か - uehaj's blog
    fumokmm
    fumokmm 2011/03/21
    Builderの分かりやすい導入の説明記事。Builder便利ですよねー。
  • 1