woolpack.el
クラス ReflectionPropertyELFactory
java.lang.Object
woolpack.el.ReflectionPropertyELFactory
- すべての実装されたインタフェース:
- PropertyELFactory
public class ReflectionPropertyELFactory
- extends java.lang.Object
- implements PropertyELFactory
リフレクションを使用したプロパティ式言語ファクトリです。
getter/setterのオーバロードには対応していません。
代わりに型を変換した結果を格納することを試みます。
適用しているデザインパターン:リフレクションライブラリのAdapter。
- 作成者:
- nakamura
メソッドの概要 |
Fn<ConvertContext,java.lang.Void,? extends java.lang.RuntimeException> |
getFn()
|
GettingEL |
newGetter(java.lang.Class clazz,
java.lang.String propertyName)
対象クラスの対象プロパティ名の値を取得するための式言語を返します。 |
EL |
newSetter(java.lang.Class clazz,
java.lang.String propertyName)
対象クラスの対象プロパティ名に値を設定するための式言語を返します。 |
void |
setFn(Fn<ConvertContext,java.lang.Void,? extends java.lang.RuntimeException> fn)
|
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionPropertyELFactory
public ReflectionPropertyELFactory(Fn<ConvertContext,java.lang.Void,? extends java.lang.RuntimeException> fn)
- パラメータ:
fn
- 型を変換する関数。
newGetter
public GettingEL newGetter(java.lang.Class clazz,
java.lang.String propertyName)
- インタフェース
PropertyELFactory
の記述:
- 対象クラスの対象プロパティ名の値を取得するための式言語を返します。
- 定義:
- インタフェース
PropertyELFactory
内の newGetter
- パラメータ:
clazz
- 対象クラス。propertyName
- プロパティ名。
- 戻り値:
- 対象クラスのプロパティの値を取得する式言語。
newSetter
public EL newSetter(java.lang.Class clazz,
java.lang.String propertyName)
- インタフェース
PropertyELFactory
の記述:
- 対象クラスの対象プロパティ名に値を設定するための式言語を返します。
- 定義:
- インタフェース
PropertyELFactory
内の newSetter
- パラメータ:
clazz
- 対象クラス。propertyName
- プロパティ名。
- 戻り値:
- 対象クラスのプロパティに値を設定する式言語。
getFn
public Fn<ConvertContext,java.lang.Void,? extends java.lang.RuntimeException> getFn()
setFn
public void setFn(Fn<ConvertContext,java.lang.Void,? extends java.lang.RuntimeException> fn)
Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.