Uses of Interface
org.springframework.expression.EvaluationContext
Packages that use EvaluationContext
Package
Description
Expression parsing support within a Spring application context.
Core abstractions behind the Spring Expression Language.
Common utility classes behind the Spring Expression Language.
SpEL's central implementation package.
SpEL's abstract syntax tree.
SpEL's standard parser implementation.
SpEL's default implementations for various core abstractions.
-
Uses of EvaluationContext in org.springframework.context.expression
Classes in org.springframework.context.expression that implement EvaluationContextModifier and TypeClassDescriptionclassA method-basedEvaluationContextthat provides explicit support for method-based invocations.Methods in org.springframework.context.expression with parameters of type EvaluationContextModifier and TypeMethodDescriptionbooleanBeanExpressionContextAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) booleanBeanFactoryAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) booleanEnvironmentAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) booleanBeanExpressionContextAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) booleanBeanFactoryAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) booleanEnvironmentAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) Read-only: returnsfalse.BeanExpressionContextAccessor.read(EvaluationContext context, @Nullable Object target, String name) BeanFactoryAccessor.read(EvaluationContext context, @Nullable Object target, String name) EnvironmentAccessor.read(EvaluationContext context, @Nullable Object target, String name) Access the given target object by resolving the given property name against the given target environment.BeanFactoryResolver.resolve(EvaluationContext context, String beanName) voidBeanExpressionContextAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) voidBeanFactoryAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) voidEnvironmentAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) -
Uses of EvaluationContext in org.springframework.expression
Methods in org.springframework.expression with parameters of type EvaluationContextModifier and TypeMethodDescriptionbooleanIndexAccessor.canRead(EvaluationContext context, Object target, Object index) Determine if this index accessor is able to read a specified index on a specified target object.booleanPropertyAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) Called to determine if this property accessor is able to read a specified property on a specified target object.booleanIndexAccessor.canWrite(EvaluationContext context, Object target, Object index) Determine if this index accessor is able to write to a specified index on a specified target object.booleanPropertyAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) Called to determine if this property accessor is able to write to a specified property on a specified target object.ConstructorExecutor.execute(EvaluationContext context, @Nullable Object... arguments) Execute a constructor in the specified context using the specified arguments.MethodExecutor.execute(EvaluationContext context, Object target, @Nullable Object... arguments) Execute a method in the specified context using the specified arguments.Expression.getValue(EvaluationContext context) Evaluate this expression in the provided context and return the result of evaluation.<T> @Nullable TExpression.getValue(EvaluationContext context, @Nullable Class<T> desiredResultType) Evaluate this expression in the provided context and return the result of evaluation.Expression.getValue(EvaluationContext context, @Nullable Object rootObject) Evaluate this expression in the provided context against the specified root object and return the result of evaluation.<T> @Nullable TExpression.getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) Evaluate this expression in the provided context against the specified root object and return the result of evaluation.Expression.getValueType(EvaluationContext context) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Expression.getValueType(EvaluationContext context, @Nullable Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Expression.getValueTypeDescriptor(EvaluationContext context) Return a descriptor for the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Expression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) Return a descriptor for the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.booleanExpression.isWritable(EvaluationContext context) Determine if this expression can be written to, i.e.booleanExpression.isWritable(EvaluationContext context, @Nullable Object rootObject) Determine if this expression can be written to, i.e.IndexAccessor.read(EvaluationContext context, Object target, Object index) Read an index from a specified target object.PropertyAccessor.read(EvaluationContext context, @Nullable Object target, String name) Called to read a property from a specified target object.BeanResolver.resolve(EvaluationContext context, String beanName) Look up a bean by the given name and return a corresponding instance for it.ConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Within the supplied context, resolve a suitable constructor on the supplied type that can handle the specified arguments.MethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Within the supplied context, resolve a suitable method on the supplied object that can handle the specified arguments.voidExpression.setValue(EvaluationContext context, @Nullable Object value) Set this expression in the provided context to the value provided.voidSet this expression in the provided context to the value provided.voidIndexAccessor.write(EvaluationContext context, Object target, Object index, @Nullable Object newValue) Write to an index on a specified target object.voidPropertyAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) Called to write to a property on a specified target object. -
Uses of EvaluationContext in org.springframework.expression.common
Methods in org.springframework.expression.common with parameters of type EvaluationContextModifier and TypeMethodDescriptionstatic <T> @Nullable TExpressionUtils.convertTypedValue(@Nullable EvaluationContext context, TypedValue typedValue, @Nullable Class<T> targetType) Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type.CompositeStringExpression.getValue(EvaluationContext context) <T> @Nullable TCompositeStringExpression.getValue(EvaluationContext context, @Nullable Class<T> expectedResultType) CompositeStringExpression.getValue(EvaluationContext context, @Nullable Object rootObject) <T> @Nullable TCompositeStringExpression.getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) LiteralExpression.getValue(EvaluationContext context) <T> @Nullable TLiteralExpression.getValue(EvaluationContext context, @Nullable Class<T> expectedResultType) LiteralExpression.getValue(EvaluationContext context, @Nullable Object rootObject) <T> @Nullable TLiteralExpression.getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) Class<?> CompositeStringExpression.getValueType(EvaluationContext context) Class<?> CompositeStringExpression.getValueType(EvaluationContext context, @Nullable Object rootObject) Class<?> LiteralExpression.getValueType(EvaluationContext context) Class<?> LiteralExpression.getValueType(EvaluationContext context, @Nullable Object rootObject) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) LiteralExpression.getValueTypeDescriptor(EvaluationContext context) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) booleanCompositeStringExpression.isWritable(EvaluationContext context) booleanCompositeStringExpression.isWritable(EvaluationContext context, @Nullable Object rootObject) booleanLiteralExpression.isWritable(EvaluationContext context) booleanLiteralExpression.isWritable(EvaluationContext context, @Nullable Object rootObject) voidCompositeStringExpression.setValue(EvaluationContext context, @Nullable Object value) voidCompositeStringExpression.setValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) voidLiteralExpression.setValue(EvaluationContext context, @Nullable Object value) voidLiteralExpression.setValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) -
Uses of EvaluationContext in org.springframework.expression.spel
Methods in org.springframework.expression.spel that return EvaluationContextMethods in org.springframework.expression.spel with parameters of type EvaluationContextModifier and TypeMethodDescriptionabstract ObjectCompiledExpression.getValue(@Nullable Object target, @Nullable EvaluationContext context) Subclasses of CompiledExpression generated by SpelCompiler will provide an implementation of this method.Constructors in org.springframework.expression.spel with parameters of type EvaluationContextModifierConstructorDescriptionExpressionState(EvaluationContext context) ExpressionState(EvaluationContext context, SpelParserConfiguration configuration) ExpressionState(EvaluationContext context, TypedValue rootObject) ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) -
Uses of EvaluationContext in org.springframework.expression.spel.ast
Methods in org.springframework.expression.spel.ast with parameters of type EvaluationContextModifier and TypeMethodDescriptionstatic booleanOperator.equalityCheck(EvaluationContext context, @Nullable Object left, @Nullable Object right) Perform an equality check for the given operand values.booleanPropertyOrFieldReference.isWritableProperty(String name, TypedValue contextObject, EvaluationContext evalContext) -
Uses of EvaluationContext in org.springframework.expression.spel.standard
Methods in org.springframework.expression.spel.standard that return EvaluationContextModifier and TypeMethodDescriptionSpelExpression.getEvaluationContext()Return the default evaluation context that will be used if none is supplied on an evaluation call.Methods in org.springframework.expression.spel.standard with parameters of type EvaluationContextModifier and TypeMethodDescriptionSpelExpression.getValue(EvaluationContext context) <T> @Nullable TSpelExpression.getValue(EvaluationContext context, @Nullable Class<T> expectedResultType) SpelExpression.getValue(EvaluationContext context, @Nullable Object rootObject) <T> @Nullable TSpelExpression.getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> expectedResultType) SpelExpression.getValueType(EvaluationContext context) SpelExpression.getValueType(EvaluationContext context, @Nullable Object rootObject) SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) booleanSpelExpression.isWritable(EvaluationContext context) booleanSpelExpression.isWritable(EvaluationContext context, @Nullable Object rootObject) voidSpelExpression.setEvaluationContext(EvaluationContext evaluationContext) Set the evaluation context that will be used if none is specified on an evaluation call.voidSpelExpression.setValue(EvaluationContext context, @Nullable Object value) voidSpelExpression.setValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) -
Uses of EvaluationContext in org.springframework.expression.spel.support
Classes in org.springframework.expression.spel.support that implement EvaluationContextModifier and TypeClassDescriptionfinal classA basic implementation ofEvaluationContextthat focuses on a subset of essential SpEL features and customization options, targeting simple condition evaluation and in particular data binding scenarios.classA powerful and highly configurableEvaluationContextimplementation.Methods in org.springframework.expression.spel.support with parameters of type EvaluationContextModifier and TypeMethodDescriptionbooleanMapAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) booleanReflectiveIndexAccessor.canRead(EvaluationContext context, Object target, Object index) Returntrueif the suppliedtargetandindexcan be assigned to thetargetTypeandindexTypeconfigured via the constructor.booleanReflectivePropertyAccessor.canRead(EvaluationContext context, @Nullable Object target, String name) booleanMapAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) booleanReflectiveIndexAccessor.canWrite(EvaluationContext context, Object target, Object index) Returntrueif a write-method has been configured andReflectiveIndexAccessor.canRead(EvaluationContext, Object, Object)returnstruefor the same arguments.booleanReflectivePropertyAccessor.canWrite(EvaluationContext context, @Nullable Object target, String name) ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext context, @Nullable Object target, String name) Attempt to create an optimized property accessor tailored for a property of a particular name on a particular class.ReflectiveConstructorExecutor.execute(EvaluationContext context, @Nullable Object... arguments) ReflectiveMethodExecutor.execute(EvaluationContext context, Object target, @Nullable Object... arguments) MapAccessor.read(EvaluationContext context, @Nullable Object target, String name) ReflectiveIndexAccessor.read(EvaluationContext context, Object target, Object index) Invoke the configured read-method via reflection and return the result wrapped in aTypedValue.ReflectivePropertyAccessor.read(EvaluationContext context, @Nullable Object target, String name) DataBindingMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Locate a constructor on the type.ReflectiveMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Locate a method on the type.voidMapAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue) voidReflectiveIndexAccessor.write(EvaluationContext context, Object target, Object index, @Nullable Object newValue) Invoke the configured write-method via reflection.voidReflectivePropertyAccessor.write(EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue)