woolpack.typeconvert
クラス ToTypeConverter

java.lang.Object
  上位を拡張 woolpack.typeconvert.ToTypeConverter
すべての実装されたインタフェース:
Fn<ConvertContext,Void,RuntimeException>

public class ToTypeConverter
extends Object
implements Fn<ConvertContext,Void,RuntimeException>

ConvertContext.getToType()を委譲先で変換した結果を ConvertContext.setToType(Class)に設定する関数です。
適用しているデザインパターン:参照透過と副作用のAdapter。


コンストラクタの概要
ToTypeConverter(Fn<? super Class,? extends Class,? extends RuntimeException> fn)
           
 
メソッドの概要
 Void exec(ConvertContext c)
          関数を実行します。
 Fn<? super Class,? extends Class,? extends RuntimeException> getFn()
           
 void setFn(Fn<? super Class,? extends Class,? extends RuntimeException> fn)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ToTypeConverter

public ToTypeConverter(Fn<? super Class,? extends Class,? extends RuntimeException> fn)
メソッドの詳細

exec

public Void exec(ConvertContext c)
インタフェース Fn の記述:
関数を実行します。

定義:
インタフェース Fn<ConvertContext,Void,RuntimeException> 内の exec
パラメータ:
c - コンテキスト役。
戻り値:
返却値。

getFn

public Fn<? super Class,? extends Class,? extends RuntimeException> getFn()

setFn

public void setFn(Fn<? super Class,? extends Class,? extends RuntimeException> fn)


Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.