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