S - 評価コンテキストのルートオブジェクト型。public class FunctionExpression<S> extends ObjectSE implements Expression
FunctionSE で Function.apply(Object) を呼び出すだけの Expression。Java 8 とその Lambda サポートが使用されている場合、これは SpEL の強力な代替手段です。
ターゲットコンポーネントが Expression プロパティをサポートしている場合は、ランタイム SpEL 解決ではなく、ラムダからの値を評価する代わりに、SpelExpression の代わりに FunctionExpression を指定できます。
FunctionExpression は「読み取り専用」であるため、getValue() 操作のみが許可されます。setValue(org.springframework.expression.EvaluationContext, java.lang.Object) 操作および getValueType() 関連の操作は EvaluationException をスローします。
| コンストラクターと説明 |
|---|
FunctionExpression(java.util.function.FunctionSE<S,?> function) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic FunctionExpression(java.util.function.FunctionSE<S,?> function)
@Nullable public ObjectSE getValue() throws EvaluationException
Expression の getValue EvaluationException@Nullable public ObjectSE getValue(@Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValue EvaluationException@Nullable public <T> T getValue(@Nullable ClassSE<T> desiredResultType) throws EvaluationException
Expression の getValue EvaluationException@Nullable public <T> T getValue(@Nullable ObjectSE rootObject, @Nullable ClassSE<T> desiredResultType) throws EvaluationException
Expression の getValue EvaluationException@Nullable public ObjectSE getValue(EvaluationContext context) throws EvaluationException
Expression の getValue EvaluationException@Nullable public ObjectSE getValue(EvaluationContext context, @Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValue EvaluationException@Nullable public <T> T getValue(EvaluationContext context, @Nullable ClassSE<T> desiredResultType) throws EvaluationException
Expression の getValue EvaluationException@Nullable public <T> T getValue(EvaluationContext context, @Nullable ObjectSE rootObject, @Nullable ClassSE<T> desiredResultType) throws EvaluationException
Expression の getValue EvaluationExceptionpublic ClassSE<?> getValueType() throws EvaluationException
Expression の getValueType EvaluationExceptionpublic ClassSE<?> getValueType(@Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValueType EvaluationExceptionpublic ClassSE<?> getValueType(EvaluationContext context) throws EvaluationException
Expression の getValueType EvaluationExceptionpublic ClassSE<?> getValueType(EvaluationContext context, @Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValueType EvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor() throws EvaluationException
Expression の getValueTypeDescriptor EvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(@Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValueTypeDescriptor EvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException
Expression の getValueTypeDescriptor EvaluationExceptionpublic TypeDescriptor getValueTypeDescriptor(EvaluationContext context, @Nullable ObjectSE rootObject) throws EvaluationException
Expression の getValueTypeDescriptor EvaluationExceptionpublic void setValue(EvaluationContext context, @Nullable ObjectSE value) throws EvaluationException
Expression の setValue EvaluationExceptionpublic void setValue(@Nullable ObjectSE rootObject, @Nullable ObjectSE value) throws EvaluationException
Expression の setValue EvaluationExceptionpublic void setValue(EvaluationContext context, @Nullable ObjectSE rootObject, @Nullable ObjectSE value) throws EvaluationException
Expression の setValue EvaluationExceptionpublic boolean isWritable(EvaluationContext context) throws EvaluationException
Expression の isWritable EvaluationExceptionpublic boolean isWritable(EvaluationContext context, @Nullable ObjectSE rootObject) throws EvaluationException
Expression の isWritable EvaluationExceptionpublic boolean isWritable(@Nullable ObjectSE rootObject) throws EvaluationException
Expression の isWritable EvaluationExceptionpublic final StringSE getExpressionString()
Expression の getExpressionString