インターフェースの使用
org.springframework.expression.EvaluationContext
EvaluationContext を使用するパッケージ
パッケージ
説明
Spring アプリケーションコンテキスト内の式解析サポート。
Spring Expression Language の背後にあるコア抽象化。
Spring Expression Language の背後にある一般的なユーティリティクラス。
SpEL の中央実装パッケージ。
SpEL の抽象構文ツリー。
SpEL の標準パーサー実装。
さまざまなコア抽象化のための SpEL のデフォルト実装。
org.springframework.context.expression 内の EvaluationContext 使用
EvaluationContext を実装している org.springframework.context.expression のクラス型 EvaluationContext のパラメーターを持つ org.springframework.context.expression のメソッド修飾子と型メソッド説明booleanBeanExpressionContextAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) booleanBeanFactoryAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) booleanEnvironmentAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) Environmentを読み取ることができるため、常に true を返します。booleanMapAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) booleanBeanExpressionContextAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) booleanBeanFactoryAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) booleanEnvironmentAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) 読み取り専用:falseを返します。booleanMapAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) BeanExpressionContextAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) BeanFactoryAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) EnvironmentAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) 特定のターゲット環境に対して特定のプロパティ名を解決することにより、特定のターゲットオブジェクトにアクセスします。MapAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) BeanFactoryResolver.resolve(EvaluationContext context, StringSE beanName) voidBeanExpressionContextAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) voidBeanFactoryAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) voidEnvironmentAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) 読み取り専用: 動作しません。voidMapAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) org.springframework.expression 内の EvaluationContext 使用
型 EvaluationContext のパラメーターを持つ org.springframework.expression のメソッド修飾子と型メソッド説明booleanPropertyAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) リゾルバーインスタンスが指定されたターゲットオブジェクトの指定されたプロパティにアクセスできるかどうかを判断するために呼び出されます。booleanPropertyAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) リゾルバーインスタンスが指定されたターゲットオブジェクトの指定されたプロパティに書き込むことができるかどうかを判断するために呼び出されます。ConstructorExecutor.execute(EvaluationContext context, ObjectSE... arguments) 指定された引数を使用して、指定されたコンテキストでコンストラクターを実行します。MethodExecutor.execute(EvaluationContext context, ObjectSE target, ObjectSE... arguments) 指定された引数を使用して、指定されたコンテキストでメソッドを実行します。Expression.getValue(EvaluationContext context) 指定されたコンテキストでこの式を評価し、評価の結果を返します。<T> TExpression.getValue(EvaluationContext context, ClassSE<T> desiredResultType) プロパティ、メソッド、型などへの参照を解決できる、指定されたコンテキストでこの式を評価します。Expression.getValue(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストでこの式を評価し、評価の結果を返しますが、コンテキストで指定されたデフォルトのルートオブジェクトのオーバーライドとして、指定されたルートコンテキストを使用します。<T> TExpression.getValue(EvaluationContext context, ObjectSE rootObject, ClassSE<T> desiredResultType) プロパティ、メソッド、型などへの参照を解決できる、指定されたコンテキストでこの式を評価します。ClassSE<?>Expression.getValueType(EvaluationContext context) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object)メソッドに渡すことができる最も一般的な型を返します。ClassSE<?>Expression.getValueType(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object, Object)メソッドに渡すことができる最も一般的な型を返します。Expression.getValueTypeDescriptor(EvaluationContext context) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object)メソッドに渡すことができる最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object, Object)メソッドに渡すことができる最も一般的な型の記述子を返します。booleanExpression.isWritable(EvaluationContext context) この式を書き込むことができるかどうかを判断します。booleanExpression.isWritable(EvaluationContext context, ObjectSE rootObject) この式を書き込むことができるかどうかを判断します。PropertyAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) 指定されたターゲットオブジェクトからプロパティを読み取るために呼び出されます。BeanResolver.resolve(EvaluationContext context, StringSE beanName) 指定された名前で Bean を検索し、それに対応するインスタンスを返します。ConstructorResolver.resolve(EvaluationContext context, StringSE typeName, ListSE<TypeDescriptor> argumentTypes) 指定されたコンテキスト内で、指定された引数を処理できる、指定された型の適切なコンストラクターを解決します。MethodResolver.resolve(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) 指定されたコンテキスト内で、指定された引数を処理できる、指定されたオブジェクト上の適切なメソッドを解決します。voidExpression.setValue(EvaluationContext context, ObjectSE value) 提供されたコンテキストでこの式を提供された値に設定します。voidExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) 提供されたコンテキストでこの式を提供された値に設定します。voidPropertyAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) 指定されたターゲットオブジェクトのプロパティに書き込むために呼び出されます。org.springframework.expression.common 内の EvaluationContext 使用
型 EvaluationContext のパラメーターを持つ org.springframework.expression.common のメソッド修飾子と型メソッド説明static <T> TExpressionUtils.convertTypedValue(EvaluationContext context, TypedValue typedValue, ClassSE<T> targetType) 指定されたコンテキストで使用可能な型コンバーターがあるかどうかを判別し、それを使用して、指定された値を指定された型に変換しようとします。CompositeStringExpression.getValue(EvaluationContext context) <T> TCompositeStringExpression.getValue(EvaluationContext context, ClassSE<T> expectedResultType) CompositeStringExpression.getValue(EvaluationContext context, ObjectSE rootObject) <T> TCompositeStringExpression.getValue(EvaluationContext context, ObjectSE rootObject, ClassSE<T> desiredResultType) LiteralExpression.getValue(EvaluationContext context) <T> TLiteralExpression.getValue(EvaluationContext context, ClassSE<T> expectedResultType) LiteralExpression.getValue(EvaluationContext context, ObjectSE rootObject) <T> TLiteralExpression.getValue(EvaluationContext context, ObjectSE rootObject, ClassSE<T> desiredResultType) ClassSE<?>CompositeStringExpression.getValueType(EvaluationContext context) ClassSE<?>CompositeStringExpression.getValueType(EvaluationContext context, ObjectSE rootObject) ClassSE<?>LiteralExpression.getValueType(EvaluationContext context) ClassSE<?>LiteralExpression.getValueType(EvaluationContext context, ObjectSE rootObject) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) LiteralExpression.getValueTypeDescriptor(EvaluationContext context) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) booleanCompositeStringExpression.isWritable(EvaluationContext context) booleanCompositeStringExpression.isWritable(EvaluationContext context, ObjectSE rootObject) booleanLiteralExpression.isWritable(EvaluationContext context) booleanLiteralExpression.isWritable(EvaluationContext context, ObjectSE rootObject) voidCompositeStringExpression.setValue(EvaluationContext context, ObjectSE value) voidCompositeStringExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) voidLiteralExpression.setValue(EvaluationContext context, ObjectSE value) voidLiteralExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) org.springframework.expression.spel 内の EvaluationContext 使用
型 EvaluationContext のパラメーターを持つ org.springframework.expression.spel のメソッド修飾子と型メソッド説明abstract ObjectSECompiledExpression.getValue(ObjectSE target, EvaluationContext context) SpelCompiler によって生成された CompiledExpression のサブクラスは、このメソッドの実装を提供します。型 EvaluationContext のパラメーターを持つ org.springframework.expression.spel のコンストラクター修飾子コンストラクター説明ExpressionState(EvaluationContext context) ExpressionState(EvaluationContext context, SpelParserConfiguration configuration) ExpressionState(EvaluationContext context, TypedValue rootObject) ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) org.springframework.expression.spel.ast 内の EvaluationContext 使用
型 EvaluationContext のパラメーターを持つ org.springframework.expression.spel.ast のメソッド修飾子と型メソッド説明static booleanOperator.equalityCheck(EvaluationContext context, ObjectSE left, ObjectSE right) 指定されたオペランド値の等価性チェックを実行します。booleanPropertyOrFieldReference.isWritableProperty(StringSE name, TypedValue contextObject, EvaluationContext evalContext) org.springframework.expression.spel.standard 内の EvaluationContext 使用
型 EvaluationContext のパラメーターを持つ org.springframework.expression.spel.standard のメソッド修飾子と型メソッド説明SpelExpression.getValue(EvaluationContext context) <T> TSpelExpression.getValue(EvaluationContext context, ClassSE<T> expectedResultType) SpelExpression.getValue(EvaluationContext context, ObjectSE rootObject) <T> TSpelExpression.getValue(EvaluationContext context, ObjectSE rootObject, ClassSE<T> expectedResultType) ClassSE<?>SpelExpression.getValueType(EvaluationContext context) ClassSE<?>SpelExpression.getValueType(EvaluationContext context, ObjectSE rootObject) SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) booleanSpelExpression.isWritable(EvaluationContext context) booleanSpelExpression.isWritable(EvaluationContext context, ObjectSE rootObject) voidSpelExpression.setEvaluationContext(EvaluationContext evaluationContext) 評価呼び出しで何も指定されていない場合に使用される評価コンテキストを設定します。voidSpelExpression.setValue(EvaluationContext context, ObjectSE value) voidSpelExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) org.springframework.expression.spel.support 内の EvaluationContext 使用
修飾子と型クラス説明final class基本的な SpEL 機能とカスタマイズオプションのサブセットに焦点を当てたEvaluationContextの基本的な実装で、単純な条件評価と特定のデータバインディングシナリオを対象としています。class強力で高度に構成可能なEvaluationContext実装。型 EvaluationContext のパラメーターを持つ org.springframework.expression.spel.support のメソッド修飾子と型メソッド説明booleanReflectivePropertyAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) booleanReflectivePropertyAccessor.OptimalPropertyAccessor.canRead(EvaluationContext context, ObjectSE target, StringSE name) booleanReflectivePropertyAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) booleanReflectivePropertyAccessor.OptimalPropertyAccessor.canWrite(EvaluationContext context, ObjectSE target, StringSE name) ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext context, ObjectSE target, StringSE name) 特定のクラスの特定の名前のプロパティに合わせて最適化されたプロパティアクセサーを作成しようとします。ReflectiveConstructorExecutor.execute(EvaluationContext context, ObjectSE... arguments) ReflectiveMethodExecutor.execute(EvaluationContext context, ObjectSE target, ObjectSE... arguments) ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) ReflectivePropertyAccessor.read(EvaluationContext context, ObjectSE target, StringSE name) DataBindingMethodResolver.resolve(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve(EvaluationContext context, StringSE typeName, ListSE<TypeDescriptor> argumentTypes) 型のコンストラクターを見つけます。ReflectiveMethodResolver.resolve(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) 型のメソッドを見つけます。voidReflectivePropertyAccessor.OptimalPropertyAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue) voidReflectivePropertyAccessor.write(EvaluationContext context, ObjectSE target, StringSE name, ObjectSE newValue)