Uses of Interface
org.springframework.expression.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
Modifier and TypeClassDescriptionclass
A method-basedEvaluationContext
that provides explicit support for method-based invocations.Modifier and TypeMethodDescriptionboolean
BeanExpressionContextAccessor.canRead
(EvaluationContext context, Object target, String name) boolean
BeanFactoryAccessor.canRead
(EvaluationContext context, Object target, String name) boolean
EnvironmentAccessor.canRead
(EvaluationContext context, Object target, String name) Can read anyEnvironment
, thus always returns true.boolean
MapAccessor.canRead
(EvaluationContext context, Object target, String name) boolean
BeanExpressionContextAccessor.canWrite
(EvaluationContext context, Object target, String name) boolean
BeanFactoryAccessor.canWrite
(EvaluationContext context, Object target, String name) boolean
EnvironmentAccessor.canWrite
(EvaluationContext context, Object target, String name) Read-only: returnsfalse
.boolean
MapAccessor.canWrite
(EvaluationContext context, Object target, String name) BeanExpressionContextAccessor.read
(EvaluationContext context, Object target, String name) BeanFactoryAccessor.read
(EvaluationContext context, Object target, String name) EnvironmentAccessor.read
(EvaluationContext context, Object target, String name) Access the given target object by resolving the given property name against the given target environment.MapAccessor.read
(EvaluationContext context, Object target, String name) BeanFactoryResolver.resolve
(EvaluationContext context, String beanName) void
BeanExpressionContextAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) void
BeanFactoryAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) void
EnvironmentAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) Read-only: no-op.void
MapAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) -
Uses of EvaluationContext in org.springframework.expression
Modifier and TypeMethodDescriptionboolean
PropertyAccessor.canRead
(EvaluationContext context, Object target, String name) Called to determine if a resolver instance is able to access a specified property on a specified target object.boolean
PropertyAccessor.canWrite
(EvaluationContext context, Object target, String name) Called to determine if a resolver instance is able to write to a specified property on a specified target object.ConstructorExecutor.execute
(EvaluationContext context, Object... arguments) Execute a constructor in the specified context using the specified arguments.MethodExecutor.execute
(EvaluationContext context, Object target, 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> T
Expression.getValue
(EvaluationContext context, Class<T> desiredResultType) Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc.Expression.getValue
(EvaluationContext context, Object rootObject) Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context.<T> T
Expression.getValue
(EvaluationContext context, Object rootObject, Class<T> desiredResultType) Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc.Class<?>
Expression.getValueType
(EvaluationContext context) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)
method for the given context.Class<?>
Expression.getValueType
(EvaluationContext context, 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, 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.boolean
Expression.isWritable
(EvaluationContext context) Determine if this expression can be written to, i.e.boolean
Expression.isWritable
(EvaluationContext context, Object rootObject) Determine if this expression can be written to, i.e.PropertyAccessor.read
(EvaluationContext context, 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.void
Expression.setValue
(EvaluationContext context, Object value) Set this expression in the provided context to the value provided.void
Expression.setValue
(EvaluationContext context, Object rootObject, Object value) Set this expression in the provided context to the value provided.void
PropertyAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) Called to write to a property on a specified target object. -
Uses of EvaluationContext in org.springframework.expression.common
Modifier and TypeMethodDescriptionstatic <T> T
ExpressionUtils.convertTypedValue
(EvaluationContext context, TypedValue typedValue, 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> T
CompositeStringExpression.getValue
(EvaluationContext context, Class<T> expectedResultType) CompositeStringExpression.getValue
(EvaluationContext context, Object rootObject) <T> T
CompositeStringExpression.getValue
(EvaluationContext context, Object rootObject, Class<T> desiredResultType) LiteralExpression.getValue
(EvaluationContext context) <T> T
LiteralExpression.getValue
(EvaluationContext context, Class<T> expectedResultType) LiteralExpression.getValue
(EvaluationContext context, Object rootObject) <T> T
LiteralExpression.getValue
(EvaluationContext context, Object rootObject, Class<T> desiredResultType) Class<?>
CompositeStringExpression.getValueType
(EvaluationContext context) Class<?>
CompositeStringExpression.getValueType
(EvaluationContext context, Object rootObject) Class<?>
LiteralExpression.getValueType
(EvaluationContext context) Class<?>
LiteralExpression.getValueType
(EvaluationContext context, Object rootObject) CompositeStringExpression.getValueTypeDescriptor
(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor
(EvaluationContext context, Object rootObject) LiteralExpression.getValueTypeDescriptor
(EvaluationContext context) LiteralExpression.getValueTypeDescriptor
(EvaluationContext context, Object rootObject) boolean
CompositeStringExpression.isWritable
(EvaluationContext context) boolean
CompositeStringExpression.isWritable
(EvaluationContext context, Object rootObject) boolean
LiteralExpression.isWritable
(EvaluationContext context) boolean
LiteralExpression.isWritable
(EvaluationContext context, Object rootObject) void
CompositeStringExpression.setValue
(EvaluationContext context, Object value) void
CompositeStringExpression.setValue
(EvaluationContext context, Object rootObject, Object value) void
LiteralExpression.setValue
(EvaluationContext context, Object value) void
LiteralExpression.setValue
(EvaluationContext context, Object rootObject, Object value) -
Uses of EvaluationContext in org.springframework.expression.spel
Modifier and TypeMethodDescriptionabstract Object
CompiledExpression.getValue
(Object target, EvaluationContext context) Subclasses of CompiledExpression generated by SpelCompiler will provide an implementation of this method.ModifierConstructorDescriptionExpressionState
(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
Modifier and TypeMethodDescriptionstatic boolean
Operator.equalityCheck
(EvaluationContext context, Object left, Object right) Perform an equality check for the given operand values.boolean
PropertyOrFieldReference.isWritableProperty
(String name, TypedValue contextObject, EvaluationContext evalContext) -
Uses of EvaluationContext in org.springframework.expression.spel.standard
Modifier and TypeMethodDescriptionSpelExpression.getEvaluationContext()
Return the default evaluation context that will be used if none is supplied on an evaluation call.Modifier and TypeMethodDescriptionSpelExpression.getValue
(EvaluationContext context) <T> T
SpelExpression.getValue
(EvaluationContext context, Class<T> expectedResultType) SpelExpression.getValue
(EvaluationContext context, Object rootObject) <T> T
SpelExpression.getValue
(EvaluationContext context, Object rootObject, Class<T> expectedResultType) Class<?>
SpelExpression.getValueType
(EvaluationContext context) Class<?>
SpelExpression.getValueType
(EvaluationContext context, Object rootObject) SpelExpression.getValueTypeDescriptor
(EvaluationContext context) SpelExpression.getValueTypeDescriptor
(EvaluationContext context, Object rootObject) boolean
SpelExpression.isWritable
(EvaluationContext context) boolean
SpelExpression.isWritable
(EvaluationContext context, Object rootObject) void
SpelExpression.setEvaluationContext
(EvaluationContext evaluationContext) Set the evaluation context that will be used if none is specified on an evaluation call.void
SpelExpression.setValue
(EvaluationContext context, Object value) void
SpelExpression.setValue
(EvaluationContext context, Object rootObject, Object value) -
Uses of EvaluationContext in org.springframework.expression.spel.support
Modifier and TypeClassDescriptionfinal class
A basic implementation ofEvaluationContext
that focuses on a subset of essential SpEL features and customization options, targeting simple condition evaluation and in particular data binding scenarios.class
A powerful and highly configurableEvaluationContext
implementation.Modifier and TypeMethodDescriptionboolean
ReflectivePropertyAccessor.canRead
(EvaluationContext context, Object target, String name) boolean
ReflectivePropertyAccessor.OptimalPropertyAccessor.canRead
(EvaluationContext context, Object target, String name) boolean
ReflectivePropertyAccessor.canWrite
(EvaluationContext context, Object target, String name) boolean
ReflectivePropertyAccessor.OptimalPropertyAccessor.canWrite
(EvaluationContext context, Object target, String name) ReflectivePropertyAccessor.createOptimalAccessor
(EvaluationContext context, 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, Object... arguments) ReflectiveMethodExecutor.execute
(EvaluationContext context, Object target, Object... arguments) ReflectivePropertyAccessor.OptimalPropertyAccessor.read
(EvaluationContext context, Object target, String name) ReflectivePropertyAccessor.read
(EvaluationContext context, 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.void
ReflectivePropertyAccessor.OptimalPropertyAccessor.write
(EvaluationContext context, Object target, String name, Object newValue) void
ReflectivePropertyAccessor.write
(EvaluationContext context, Object target, String name, Object newValue)