クラスの使用
org.springframework.expression.EvaluationException
EvaluationException を使用するパッケージ
パッケージ
説明
Spring Expression Language の背後にあるコア抽象化。
Spring Expression Language の背後にある一般的なユーティリティクラス。
SpEL の中央実装パッケージ。
SpEL の抽象構文ツリー。
SpEL の標準パーサー実装。
さまざまなコア抽象化のための SpEL のデフォルト実装。
org.springframework.expression 内の EvaluationException 使用
修飾子と型クラス説明classこの例外は、SpEL が呼び出すいくつかのメソッドによってスローされたチェック済み例外を(原因として)ラップします。EvaluationException をスローする org.springframework.expression のメソッド修飾子と型メソッド説明int指定された 2 つのオブジェクトを比較します。ClassSE<?>名前で型を検索します。Expression.getValue()この式をデフォルトのコンテキストで評価し、評価の結果を返します。<T> Tこの式をデフォルトのコンテキストで評価し、評価の結果を返します。指定されたルートオブジェクトに対してデフォルトのコンテキストでこの式を評価し、評価の結果を返します。<T> T指定されたルートオブジェクトに対してデフォルトのコンテキストでこの式を評価し、評価の結果を返します。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()デフォルトのコンテキストを使用してExpression.setValue(EvaluationContext, Object)メソッドに渡すことができる最も一般的な型を返します。ClassSE<?>Expression.getValueType(ObjectSE rootObject) デフォルトのコンテキストを使用してExpression.setValue(Object, Object)メソッドに渡すことができる最も一般的な型を返します。ClassSE<?>Expression.getValueType(EvaluationContext context) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object)メソッドに渡すことができる最も一般的な型を返します。ClassSE<?>Expression.getValueType(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object, Object)メソッドに渡すことができる最も一般的な型を返します。Expression.getValueTypeDescriptor()デフォルトのコンテキストを使用してsetValue(...)メソッドの 1 つに渡すことができる、最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor(ObjectSE rootObject) デフォルトのコンテキストを使用してExpression.setValue(Object, Object)メソッドに渡すことができる、最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor(EvaluationContext context) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object)メソッドに渡すことができる最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object, Object)メソッドに渡すことができる最も一般的な型の記述子を返します。booleanExpression.isWritable(ObjectSE rootObject) この式を書き込むことができるかどうかを判断します。booleanExpression.isWritable(EvaluationContext context) この式を書き込むことができるかどうかを判断します。booleanExpression.isWritable(EvaluationContext context, ObjectSE rootObject) この式を書き込むことができるかどうかを判断します。2 つのオペランドに対して指定された操作を実行し、結果を返します。booleanOperatorOverloader.overridesOperation(Operation operation, ObjectSE leftOperand, ObjectSE rightOperand) この演算子オーバーローダーが 2 つのオペランドで指定された操作をサポートしており、それを処理するために呼び出す必要がある場合は、trueを返します。voidデフォルトのコンテキストでこの式を指定された値に設定します。voidExpression.setValue(EvaluationContext context, ObjectSE value) 提供されたコンテキストでこの式を提供された値に設定します。voidExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) 提供されたコンテキストでこの式を提供された値に設定します。org.springframework.expression.common 内の EvaluationException 使用
EvaluationException をスローする org.springframework.expression.common のメソッド修飾子と型メソッド説明CompositeStringExpression.getValue()<T> T<T> TCompositeStringExpression.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) <T> T<T> T<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(ObjectSE rootObject) ClassSE<?>CompositeStringExpression.getValueType(EvaluationContext context, ObjectSE rootObject) ClassSE<?>LiteralExpression.getValueType(ObjectSE rootObject) ClassSE<?>LiteralExpression.getValueType(EvaluationContext context, ObjectSE rootObject) CompositeStringExpression.getValueTypeDescriptor(ObjectSE rootObject) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) LiteralExpression.getValueTypeDescriptor(ObjectSE rootObject) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) booleanCompositeStringExpression.isWritable(ObjectSE rootObject) booleanCompositeStringExpression.isWritable(EvaluationContext context, ObjectSE rootObject) booleanLiteralExpression.isWritable(ObjectSE rootObject) booleanLiteralExpression.isWritable(EvaluationContext context, ObjectSE rootObject) voidvoidCompositeStringExpression.setValue(EvaluationContext context, ObjectSE value) voidCompositeStringExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) voidvoidLiteralExpression.setValue(EvaluationContext context, ObjectSE value) voidLiteralExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) org.springframework.expression.spel 内の EvaluationException 使用
EvaluationException をスローする org.springframework.expression.spel のメソッド修飾子と型メソッド説明ExpressionState.convertValue(ObjectSE value, TypeDescriptor targetTypeDescriptor) ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) ClassSE<?>SpelNode.getTypedValue(ExpressionState expressionState) 指定された式の状態のコンテキストで式ノードを評価し、型付きの値を返します。abstract ObjectSECompiledExpression.getValue(ObjectSE target, EvaluationContext context) SpelCompiler によって生成された CompiledExpression のサブクラスは、このメソッドの実装を提供します。SpelNode.getValue(ExpressionState expressionState) 指定された式の状態のコンテキストで式ノードを評価し、値を返します。booleanSpelNode.isWritable(ExpressionState expressionState) この式ノードが setValue() 呼び出しをサポートするかどうかを決定します。voidSpelNode.setValue(ExpressionState expressionState, ObjectSE newValue) 式をノードに評価してから、そのノードに新しい値を設定します。org.springframework.expression.spel.ast 内の EvaluationException 使用
修飾子と型メソッド説明final TypedValueSpelNodeImpl.getTypedValue(ExpressionState expressionState) final ObjectSESpelNodeImpl.getValue(ExpressionState expressionState) protected final <T> TSpelNodeImpl.getValue(ExpressionState state, ClassSE<T> desiredReturnType) 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) Indexer.getValueInternal(ExpressionState state) InlineList.getValueInternal(ExpressionState expressionState) InlineMap.getValueInternal(ExpressionState expressionState) MethodReference.getValueInternal(ExpressionState state) OpAnd.getValueInternal(ExpressionState state) OpDec.getValueInternal(ExpressionState state) OpDivide.getValueInternal(ExpressionState state) OpEQ.getValueInternal(ExpressionState state) OperatorBetween.getValueInternal(ExpressionState state) 値が表現された範囲内にあるかどうかに基づいてブール値を返します。OperatorInstanceof.getValueInternal(ExpressionState state) 左のオペランドを比較して、右のオペランドとして指定された型のインスタンスであることを確認します。OperatorMatches.getValueInternal(ExpressionState state) 最初のオペランドが 2 番目のオペランドとして指定された正規表現と一致することを確認します。OperatorNot.getValueInternal(ExpressionState state) OperatorPower.getValueInternal(ExpressionState state) OpGE.getValueInternal(ExpressionState state) OpGT.getValueInternal(ExpressionState state) OpInc.getValueInternal(ExpressionState state) OpLE.getValueInternal(ExpressionState state) OpLT.getValueInternal(ExpressionState state) OpMinus.getValueInternal(ExpressionState state) OpModulus.getValueInternal(ExpressionState state) OpMultiply.getValueInternal(ExpressionState state) サポートされている特定の型のオペランドのmultiply演算子を直接ここに実装します。それ以外の場合、ここでサポートされていない型の登録済みオーバーローダーに委譲します。OpNE.getValueInternal(ExpressionState state) OpOr.getValueInternal(ExpressionState state) OpPlus.getValueInternal(ExpressionState state) Projection.getValueInternal(ExpressionState state) PropertyOrFieldReference.getValueInternal(ExpressionState state) QualifiedIdentifier.getValueInternal(ExpressionState state) Selection.getValueInternal(ExpressionState state) abstract TypedValueSpelNodeImpl.getValueInternal(ExpressionState expressionState) Ternary.getValueInternal(ExpressionState state) 条件を評価し、真の場合は最初の選択肢を評価し、そうでない場合は 2 番目の選択肢を評価します。TypeReference.getValueInternal(ExpressionState state) protected ValueRefCompoundExpression.getValueRef(ExpressionState state) protected ValueRefIndexer.getValueRef(ExpressionState state) protected ValueRefMethodReference.getValueRef(ExpressionState state) protected ValueRefProjection.getValueRef(ExpressionState state) PropertyOrFieldReference.getValueRef(ExpressionState state) protected ValueRefSelection.getValueRef(ExpressionState state) protected ValueRefSpelNodeImpl.getValueRef(ExpressionState state) booleanCompoundExpression.isWritable(ExpressionState state) booleanPropertyOrFieldReference.isWritable(ExpressionState state) booleanSpelNodeImpl.isWritable(ExpressionState expressionState) booleanPropertyOrFieldReference.isWritableProperty(StringSE name, TypedValue contextObject, EvaluationContext evalContext) voidSpelNodeImpl.setValue(ExpressionState expressionState, ObjectSE newValue) 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) 式をノードに評価し、指定されたSupplierSE によって作成された新しい値をそのノードに設定します。VariableReference.setValueInternal(ExpressionState state, SupplierSE<TypedValue> valueSupplier) org.springframework.expression.spel.standard 内の EvaluationException 使用
修飾子と型メソッド説明SpelExpression.getValue()<T> T<T> TSpelExpression.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()ClassSE<?>SpelExpression.getValueType(ObjectSE rootObject) ClassSE<?>SpelExpression.getValueType(EvaluationContext context) ClassSE<?>SpelExpression.getValueType(EvaluationContext context, ObjectSE rootObject) SpelExpression.getValueTypeDescriptor()SpelExpression.getValueTypeDescriptor(ObjectSE rootObject) SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, ObjectSE rootObject) booleanSpelExpression.isWritable(ObjectSE rootObject) booleanSpelExpression.isWritable(EvaluationContext context) booleanSpelExpression.isWritable(EvaluationContext context, ObjectSE rootObject) voidvoidSpelExpression.setValue(EvaluationContext context, ObjectSE value) voidSpelExpression.setValue(EvaluationContext context, ObjectSE rootObject, ObjectSE value) org.springframework.expression.spel.support 内の EvaluationException 使用
修飾子と型メソッド説明static booleanReflectionHelper.convertAllMethodHandleArguments(TypeConverter converter, ObjectSE[] arguments, MethodHandleSE methodHandle, IntegerSE varargsPosition) varargs の位置を考慮して、指定された引数セットを指定されたMethodHandleSE のパラメーター型に変換します。ClassSE<?>(修飾されていない可能性がある) 型参照を検索します。まず型名をそのまま使用し、型名が見つからない場合は登録されているインポートプレフィックスを試します。StandardOperatorOverloader.operate(Operation operation, ObjectSE leftOperand, ObjectSE rightOperand) booleanStandardOperatorOverloader.overridesOperation(Operation operation, ObjectSE leftOperand, ObjectSE rightOperand)