public class StandardEvaluationContext extends ObjectSE implements EvaluationContext
EvaluationContext 実装。このコンテキストでは、リフレクションに基づいて、適用可能なすべての戦略の標準実装を使用して、プロパティ、メソッド、フィールドを解決します。 データバインディングの目的でより単純なビルダースタイルのコンテキストバリアントの場合は、代わりに SimpleEvaluationContext を使用することを検討してください。これにより、特定の評価ケースで必要に応じていくつかの SpEL 機能をオプトインできます。
SimpleEvaluationContext, ReflectivePropertyAccessor, ReflectiveConstructorResolver, ReflectiveMethodResolver, StandardTypeLocator, StandardTypeConverter, StandardTypeComparator, StandardOperatorOverloader| コンストラクターと説明 |
|---|
StandardEvaluationContext()null ルートオブジェクトを使用して StandardEvaluationContext を作成します。 |
StandardEvaluationContext(ObjectSE rootObject) 指定されたルートオブジェクトで StandardEvaluationContext を作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic StandardEvaluationContext()
StandardEvaluationContext を作成します。public StandardEvaluationContext(@Nullable ObjectSE rootObject)
StandardEvaluationContext を作成します。rootObject - 使用するルートオブジェクト setRootObject(java.lang.Object, org.springframework.core.convert.TypeDescriptor)public void setRootObject(@Nullable ObjectSE rootObject, TypeDescriptor typeDescriptor)
public TypedValue getRootObject()
EvaluationContextEvaluationContext 内の getRootObject public void setPropertyAccessors(ListSE<PropertyAccessor> propertyAccessors)
public ListSE<PropertyAccessor> getPropertyAccessors()
EvaluationContextEvaluationContext 内の getPropertyAccessors public void addPropertyAccessor(PropertyAccessor accessor)
public boolean removePropertyAccessor(PropertyAccessor accessor)
public void setConstructorResolvers(ListSE<ConstructorResolver> constructorResolvers)
public ListSE<ConstructorResolver> getConstructorResolvers()
EvaluationContextEvaluationContext 内の getConstructorResolvers public void addConstructorResolver(ConstructorResolver resolver)
public boolean removeConstructorResolver(ConstructorResolver resolver)
public void setMethodResolvers(ListSE<MethodResolver> methodResolvers)
public ListSE<MethodResolver> getMethodResolvers()
EvaluationContextEvaluationContext 内の getMethodResolvers public void addMethodResolver(MethodResolver resolver)
public boolean removeMethodResolver(MethodResolver methodResolver)
public void setBeanResolver(BeanResolver beanResolver)
@Nullable public BeanResolver getBeanResolver()
EvaluationContextEvaluationContext 内の getBeanResolver public void setTypeLocator(TypeLocator typeLocator)
public TypeLocator getTypeLocator()
EvaluationContextEvaluationContext 内の getTypeLocator public void setTypeConverter(TypeConverter typeConverter)
public TypeConverter getTypeConverter()
EvaluationContextEvaluationContext 内の getTypeConverter public void setTypeComparator(TypeComparator typeComparator)
public TypeComparator getTypeComparator()
EvaluationContextEvaluationContext 内の getTypeComparator public void setOperatorOverloader(OperatorOverloader operatorOverloader)
public OperatorOverloader getOperatorOverloader()
EvaluationContextEvaluationContext 内の getOperatorOverloader public void setVariable(@Nullable StringSE name, @Nullable ObjectSE value)
EvaluationContextEvaluationContext 内の setVariable name - 設定する変数の名前 value - 変数に入れられる値 @Nullable public ObjectSE lookupVariable(StringSE name)
EvaluationContextEvaluationContext 内の lookupVariable name - 検索する変数 null public void registerMethodFilter(ClassSE<?> type, MethodFilter filter) throws IllegalStateExceptionSE
MethodFilter を登録します。MethodFilter はメソッドを削除したり、メソッドをソートしたりして、SpEL が一致を探す候補として SpEL で使用するようにします。
type - フィルターを呼び出す型 filter - 型のフィルターの登録を解除する MethodFilter または null IllegalStateExceptionSE - ReflectiveMethodResolver が使用されていない場合