クラス ExpressionState
java.lang.ObjectSE
org.springframework.expression.spel.ExpressionState
ExpressionState は式ごとの評価状態を維持するためのもので、これに対する変更は他の式からは見えませんが、ローカル変数を保持し、複合式のコンポーネント式が状態を通信するための場所を提供します。これは、式の評価で共有される EvaluationContext とは対照的です。EvaluationContext への変更は、他の式や、コンテキストの質問をすることを選択したコードで確認できます。
また、さまざまな AST ノードが必要とする可能性のある一般的なユーティリティルーチンを定義する場所としても機能します。
- 導入:
- 3.0
- 作成者:
- Andy Clement, Juergen Hoeller
コンストラクターのサマリー
コンストラクター説明ExpressionState
(EvaluationContext context) ExpressionState
(EvaluationContext context, SpelParserConfiguration configuration) ExpressionState
(EvaluationContext context, TypedValue rootObject) ExpressionState
(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) メソッドのサマリー
修飾子と型メソッド説明convertValue
(ObjectSE value, TypeDescriptor targetTypeDescriptor) convertValue
(TypedValue value, TypeDescriptor targetTypeDescriptor) void
void
enterScope
(StringSE name, ObjectSE value) void
enterScope
(MapSE<StringSE, ObjectSE> argMap) void
ClassSE<?>
アクティブなコンテキストオブジェクトは、プロパティなどへの修飾されていない参照が解決される対象です。lookupLocalVariable
(StringSE name) lookupVariable
(StringSE name) void
void
void
setLocalVariable
(StringSE name, ObjectSE value) void
setVariable
(StringSE name, ObjectSE value)
コンストラクターの詳細
ExpressionState
ExpressionState
ExpressionState
ExpressionState
public ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
メソッドの詳細
getActiveContextObject
アクティブなコンテキストオブジェクトは、プロパティなどへの修飾されていない参照が解決される対象です。pushActiveContextObject
popActiveContextObject
public void popActiveContextObject()getRootContextObject
getScopeRootContextObject
setVariable
lookupVariable
getTypeComparator
findType
convertValue
public ObjectSE convertValue(ObjectSE value, TypeDescriptor targetTypeDescriptor) throws EvaluationException getTypeConverter
convertValue
@Nullable public ObjectSE convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) throws EvaluationException enterScope
enterScope
public void enterScope()enterScope
exitScope
public void exitScope()setLocalVariable
lookupLocalVariable
operate
public TypedValue operate(Operation op, @Nullable ObjectSE left, @Nullable ObjectSE right) throws EvaluationException getPropertyAccessors
getEvaluationContext
getConfiguration