public class ExpressionState extends ObjectSE
また、さまざまな AST ノードが必要とする共通のユーティリティルーチンを定義する場所としても機能します。
| コンストラクターと説明 |
|---|
ExpressionState(EvaluationContext context) |
ExpressionState(EvaluationContext context, SpelParserConfiguration configuration) |
ExpressionState(EvaluationContext context, TypedValue rootObject) |
ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ExpressionState(EvaluationContext context)
public ExpressionState(EvaluationContext context, SpelParserConfiguration configuration)
public ExpressionState(EvaluationContext context, TypedValue rootObject)
public ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
public TypedValue getActiveContextObject()
public void pushActiveContextObject(TypedValue obj)
public void popActiveContextObject()
public TypedValue getRootContextObject()
public TypedValue getScopeRootContextObject()
public TypedValue assignVariable(StringSE name, SupplierSE<TypedValue> valueSupplier)
SupplierSE によって作成された値を、評価コンテキスト内の名前付き変数に割り当てます。setVariable(String, Object) とは対照的に、このメソッドは、式内での割り当てをサポートするためにのみ呼び出す必要があります。
name - 割り当てる変数の名前 valueSupplier - 変数に割り当てられる値のサプライヤー TypedValueEvaluationContext.assignVariable(String, Supplier)public void setVariable(StringSE name, @Nullable ObjectSE value)
assignVariable(String, Supplier) とは対照的に、このメソッドはプログラムでのみ呼び出す必要があります。
name - 設定する変数の名前 value - 変数に入れられる値 EvaluationContext.setVariable(String, Object)public TypedValue lookupVariable(StringSE name)
public TypeComparator getTypeComparator()
public ClassSE<?> findType(StringSE type) throws EvaluationException
public ObjectSE convertValue(ObjectSE value, TypeDescriptor targetTypeDescriptor) throws EvaluationException
public TypeConverter getTypeConverter()
@Nullable public ObjectSE convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) throws EvaluationException
public void enterScope()
public void exitScope()
public TypedValue operate(Operation op, @Nullable ObjectSE left, @Nullable ObjectSE right) throws EvaluationException
public ListSE<PropertyAccessor> getPropertyAccessors()
public EvaluationContext getEvaluationContext()
public SpelParserConfiguration getConfiguration()