クラスの使用
org.springframework.expression.TypedValue
パッケージ
説明
Spring アプリケーションコンテキスト内の式解析サポート。
Spring Expression Language の背後にあるコア抽象化。
Spring Expression Language の背後にある一般的なユーティリティクラス。
SpEL の中央実装パッケージ。
SpEL の抽象構文ツリー。
さまざまなコア抽象化のための SpEL のデフォルト実装。
org.springframework.context.expression 内の TypedValue 使用
修飾子と型メソッド説明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) org.springframework.expression 内の TypedValue 使用
修飾子と型メソッド説明default TypedValue
EvaluationContext.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) 指定されたSupplier
SE によって作成された値を、この評価コンテキスト内の名前付き変数に割り当てます。ConstructorExecutor.execute
(EvaluationContext context, ObjectSE... arguments) 指定された引数を使用して、指定されたコンテキストでコンストラクターを実行します。MethodExecutor.execute
(EvaluationContext context, ObjectSE target, ObjectSE... arguments) 指定された引数を使用し、指定された式の状態を使用してコマンドを実行します。EvaluationContext.getRootObject()
修飾されていないプロパティ / メソッド / その他を解決する必要があるデフォルトのルートコンテキストオブジェクトを返します。PropertyAccessor.read
(EvaluationContext context, ObjectSE target, StringSE name) 指定されたターゲットオブジェクトからプロパティを読み取るために呼び出されます。修飾子と型メソッド説明default TypedValue
EvaluationContext.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) 指定されたSupplier
SE によって作成された値を、この評価コンテキスト内の名前付き変数に割り当てます。org.springframework.expression.common 内の TypedValue 使用
修飾子と型メソッド説明static <T> T
ExpressionUtils.convertTypedValue
(EvaluationContext context, TypedValue typedValue, ClassSE<T> targetType) 指定されたコンテキストで使用可能な型コンバーターがあるかどうかを判別し、それを使用して、指定された値を指定された型に変換しようとします。static boolean
ExpressionUtils.toBoolean
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値をブール値に変換しようとします。static byte
ExpressionUtils.toByte
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値をバイトに変換してみてください。static char
ExpressionUtils.toChar
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付きの値を char に変換しようとします。static double
ExpressionUtils.toDouble
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を double に変換してみてください。static float
ExpressionUtils.toFloat
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を浮動小数点数に変換してみてください。static int
ExpressionUtils.toInt
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を int に変換しようとします。static long
ExpressionUtils.toLong
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を long に変換しようとします。static short
ExpressionUtils.toShort
(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を short に変換してみてください。org.springframework.expression.spel 内の TypedValue 使用
修飾子と型メソッド説明ExpressionState.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) 指定されたSupplier
SE によって作成された値を、評価コンテキスト内の名前付き変数に割り当てます。ExpressionState.getActiveContextObject()
アクティブなコンテキストオブジェクトは、プロパティなどへの修飾されていない参照が解決される対象です。ExpressionState.getRootContextObject()
ExpressionState.getScopeRootContextObject()
SpelNode.getTypedValue
(ExpressionState expressionState) 指定された式の状態のコンテキストで式ノードを評価し、型付きの値を返します。ExpressionState.lookupVariable
(StringSE name) 修飾子と型メソッド説明ExpressionState.convertValue
(TypedValue value, TypeDescriptor targetTypeDescriptor) void
ExpressionState.pushActiveContextObject
(TypedValue obj) 修飾子と型メソッド説明ExpressionState.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) 指定されたSupplier
SE によって作成された値を、評価コンテキスト内の名前付き変数に割り当てます。修飾子コンストラクター説明ExpressionState
(EvaluationContext context, TypedValue rootObject) ExpressionState
(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) org.springframework.expression.spel.ast 内の TypedValue 使用
修飾子と型メソッド説明FloatLiteral.getLiteralValue()
IntLiteral.getLiteralValue()
abstract TypedValue
Literal.getLiteralValue()
LongLiteral.getLiteralValue()
NullLiteral.getLiteralValue()
RealLiteral.getLiteralValue()
StringLiteral.getLiteralValue()
final TypedValue
SpelNodeImpl.getTypedValue
(ExpressionState expressionState) ValueRef.getValue()
この ValueRef が指す値を返します。式コンポーネントの再評価は必要ありません。ValueRef.NullValueRef.getValue()
ValueRef.TypedValueHolderValueRef.getValue()
Assign.getValueInternal
(ExpressionState state) BeanReference.getValueInternal
(ExpressionState state) CompoundExpression.getValueInternal
(ExpressionState state) 複合式を評価します。ConstructorReference.getValueInternal
(ExpressionState state) getValue() を実装します。配列または単純な型を構築するためのコードに委譲します。Elvis.getValueInternal
(ExpressionState state) 条件を評価し、null でない場合はそれを返します。FunctionReference.getValueInternal
(ExpressionState state) Identifier.getValueInternal
(ExpressionState state) Indexer.getValueInternal
(ExpressionState state) InlineList.getValueInternal
(ExpressionState expressionState) InlineMap.getValueInternal
(ExpressionState expressionState) final TypedValue
Literal.getValueInternal
(ExpressionState state) MethodReference.getValueInternal
(ExpressionState state) OpAnd.getValueInternal
(ExpressionState state) OpDec.getValueInternal
(ExpressionState state) OpDivide.getValueInternal
(ExpressionState state) OperatorPower.getValueInternal
(ExpressionState state) OpInc.getValueInternal
(ExpressionState state) OpMinus.getValueInternal
(ExpressionState state) OpModulus.getValueInternal
(ExpressionState state) OpMultiply.getValueInternal
(ExpressionState state) サポートされている特定の型のオペランドのmultiply
演算子を直接ここに実装します。それ以外の場合、ここでサポートされていない型の登録済みオーバーローダーに委譲します。OpPlus.getValueInternal
(ExpressionState state) Projection.getValueInternal
(ExpressionState state) PropertyOrFieldReference.getValueInternal
(ExpressionState state) QualifiedIdentifier.getValueInternal
(ExpressionState state) Selection.getValueInternal
(ExpressionState state) abstract TypedValue
SpelNodeImpl.getValueInternal
(ExpressionState expressionState) Ternary.getValueInternal
(ExpressionState state) 条件を評価し、真の場合は最初の選択肢を評価し、そうでない場合は 2 番目の選択肢を評価します。TypeReference.getValueInternal
(ExpressionState state) VariableReference.getValueInternal
(ExpressionState state) CompoundExpression.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) Indexer.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) PropertyOrFieldReference.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) SpelNodeImpl.setValueInternal
(ExpressionState expressionState, SupplierSE<TypedValue> valueSupplier) 式をノードに評価し、指定されたSupplier
SE によって作成された新しい値をそのノードに設定します。VariableReference.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) 修飾子と型メソッド説明boolean
PropertyOrFieldReference.isWritableProperty
(StringSE name, TypedValue contextObject, EvaluationContext evalContext) 修飾子と型メソッド説明CompoundExpression.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) Indexer.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) PropertyOrFieldReference.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) SpelNodeImpl.setValueInternal
(ExpressionState expressionState, SupplierSE<TypedValue> valueSupplier) 式をノードに評価し、指定されたSupplier
SE によって作成された新しい値をそのノードに設定します。VariableReference.setValueInternal
(ExpressionState state, SupplierSE<TypedValue> valueSupplier) org.springframework.expression.spel.support 内の TypedValue 使用
修飾子と型メソッド説明SimpleEvaluationContext.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) SimpleEvaluationContext
は、式内での変数の割り当てをサポートしていません。ReflectiveConstructorExecutor.execute
(EvaluationContext context, ObjectSE... arguments) ReflectiveMethodExecutor.execute
(EvaluationContext context, ObjectSE target, ObjectSE... arguments) SimpleEvaluationContext.getRootObject()
指定されたルートオブジェクトがあれば、それを返します。StandardEvaluationContext.getRootObject()
ReflectivePropertyAccessor.OptimalPropertyAccessor.read
(EvaluationContext context, ObjectSE target, StringSE name) ReflectivePropertyAccessor.read
(EvaluationContext context, ObjectSE target, StringSE name) 修飾子と型メソッド説明SimpleEvaluationContext.assignVariable
(StringSE name, SupplierSE<TypedValue> valueSupplier) SimpleEvaluationContext
は、式内での変数の割り当てをサポートしていません。