クラス SupplierExpression<T>
java.lang.ObjectSE
org.springframework.integration.expression.SupplierExpression<T>
- 型パラメーター:
T
- サプライヤーが返す型。
- 実装されているすべてのインターフェース:
Expression
提供された
Supplier
SE で Supplier.get()
を呼び出すだけの Expression
。Java 8 とその Lambda サポートが使用されている場合、これは SpEL の強力な代替手段です。
ターゲットコンポーネントが Expression
プロパティをサポートしている場合は、ランタイム SpEL 解決ではなく、ラムダからの値を評価する代わりに、SpelExpression
の代わりに SupplierExpression
を指定できます。
SupplierExpression
は「読み取り専用」であるため、getValue()
操作のみが許可されます。setValue(org.springframework.expression.EvaluationContext, java.lang.Object)
操作および getValueType()
関連の操作は EvaluationException
をスローします。
- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明final StringSE
getValue()
<C> C
<C> C
getValue
(EvaluationContext context) <C> C
getValue
(EvaluationContext context, ClassSE<C> desiredResultType) getValue
(EvaluationContext context, ObjectSE rootObject) <C> C
getValue
(EvaluationContext context, ObjectSE rootObject, ClassSE<C> desiredResultType) ClassSE
<?> ClassSE
<?> getValueType
(ObjectSE rootObject) ClassSE
<?> getValueType
(EvaluationContext context) ClassSE
<?> getValueType
(EvaluationContext context, ObjectSE rootObject) getValueTypeDescriptor
(ObjectSE rootObject) getValueTypeDescriptor
(EvaluationContext context) getValueTypeDescriptor
(EvaluationContext context, ObjectSE rootObject) boolean
isWritable
(ObjectSE rootObject) boolean
isWritable
(EvaluationContext context) boolean
isWritable
(EvaluationContext context, ObjectSE rootObject) void
void
setValue
(EvaluationContext context, ObjectSE value) void
setValue
(EvaluationContext context, ObjectSE rootObject, ObjectSE value)
コンストラクターの詳細
SupplierExpression
メソッドの詳細
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
- 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
public <C> C getValue(EvaluationContext context, ClassSE<C> desiredResultType) throws EvaluationException - 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValue
public <C> C getValue(EvaluationContext context, ObjectSE rootObject, ClassSE<C> desiredResultType) throws EvaluationException - 次で指定:
- インターフェース
Expression
のgetValue
- 例外:
EvaluationException
getValueType
- 次で指定:
- インターフェース
Expression
のgetValueType
- 例外:
EvaluationException
getValueType
- 次で指定:
- インターフェース
Expression
のgetValueType
- 例外:
EvaluationException
getValueType
- 次で指定:
- インターフェース
Expression
のgetValueType
- 例外:
EvaluationException
getValueType
public ClassSE<?> getValueType(EvaluationContext context, ObjectSE rootObject) throws EvaluationException - 次で指定:
- インターフェース
Expression
のgetValueType
- 例外:
EvaluationException
getValueTypeDescriptor
- 次で指定:
- インターフェース
Expression
のgetValueTypeDescriptor
- 例外:
EvaluationException
getValueTypeDescriptor
- 次で指定:
- インターフェース
Expression
のgetValueTypeDescriptor
- 例外:
EvaluationException
getValueTypeDescriptor
- 次で指定:
- インターフェース
Expression
のgetValueTypeDescriptor
- 例外:
EvaluationException
getValueTypeDescriptor
public TypeDescriptor getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) throws EvaluationException - 次で指定:
- インターフェース
Expression
のgetValueTypeDescriptor
- 例外:
EvaluationException
setValue
- 次で指定:
- インターフェース
Expression
のsetValue
- 例外:
EvaluationException
setValue
- 次で指定:
- インターフェース
Expression
のsetValue
- 例外:
EvaluationException
setValue
public void setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) throws EvaluationException - 次で指定:
- インターフェース
Expression
のsetValue
- 例外:
EvaluationException
isWritable
- 次で指定:
- インターフェース
Expression
のisWritable
- 例外:
EvaluationException
isWritable
public boolean isWritable(EvaluationContext context, ObjectSE rootObject) throws EvaluationException - 次で指定:
- インターフェース
Expression
のisWritable
- 例外:
EvaluationException
isWritable
- 次で指定:
- インターフェース
Expression
のisWritable
- 例外:
EvaluationException
getExpressionString
- 次で指定:
- インターフェース
Expression
のgetExpressionString