Package | Description |
---|---|
org.springframework.context.expression |
Expression parsing support within a Spring application context.
|
org.springframework.expression |
Core abstractions behind the Spring Expression Language.
|
org.springframework.expression.common |
Common utility classes behind the Spring Expression Language.
|
org.springframework.expression.spel |
SpEL's central implementation package.
|
org.springframework.expression.spel.ast |
SpEL's abstract syntax tree.
|
org.springframework.expression.spel.standard |
SpEL's standard parser implementation.
|
org.springframework.expression.spel.support |
SpEL's default implementations for various core abstractions.
|
Modifier and Type | Class and Description |
---|---|
class |
MethodBasedEvaluationContext
A method-based
EvaluationContext that
provides explicit support for method-based invocations. |
Modifier and Type | Method and Description |
---|---|
boolean |
EnvironmentAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Can read any
Environment , thus always returns true. |
boolean |
BeanExpressionContextAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
BeanFactoryAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
MapAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
EnvironmentAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Read-only: returns
false . |
boolean |
BeanExpressionContextAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
BeanFactoryAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
MapAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
TypedValue |
EnvironmentAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Access the given target object by resolving the given property name against the given target
environment.
|
TypedValue |
BeanExpressionContextAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
TypedValue |
BeanFactoryAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
TypedValue |
MapAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
java.lang.Object |
BeanFactoryResolver.resolve(EvaluationContext context,
java.lang.String beanName) |
void |
EnvironmentAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue)
Read-only: no-op.
|
void |
BeanExpressionContextAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
void |
BeanFactoryAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
void |
MapAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.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,
java.lang.Object target,
java.lang.String name)
Called to determine if a resolver instance is able to write to a specified
property on a specified target object.
|
TypedValue |
ConstructorExecutor.execute(EvaluationContext context,
java.lang.Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
TypedValue |
MethodExecutor.execute(EvaluationContext context,
java.lang.Object target,
java.lang.Object... arguments)
Execute a command using the specified arguments, and using the specified expression state.
|
java.lang.Object |
Expression.getValue(EvaluationContext context)
Evaluate this expression in the provided context and return the result
of evaluation.
|
<T> T |
Expression.getValue(EvaluationContext context,
java.lang.Class<T> desiredResultType)
Evaluate the expression in a specified context which can resolve references
to properties, methods, types, etc.
|
java.lang.Object |
Expression.getValue(EvaluationContext context,
java.lang.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,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
Evaluate the expression in a specified context which can resolve references
to properties, methods, types, etc.
|
java.lang.Class<?> |
Expression.getValueType(EvaluationContext context)
Return the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object) method for the given context. |
java.lang.Class<?> |
Expression.getValueType(EvaluationContext context,
java.lang.Object rootObject)
Return the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object, Object) method for the given
context. |
TypeDescriptor |
Expression.getValueTypeDescriptor(EvaluationContext context)
Return the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object) method for the given context. |
TypeDescriptor |
Expression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject)
Return the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object, Object) method for the given
context. |
boolean |
Expression.isWritable(EvaluationContext context)
Determine if an expression can be written to, i.e.
|
boolean |
Expression.isWritable(EvaluationContext context,
java.lang.Object rootObject)
Determine if an expression can be written to, i.e.
|
TypedValue |
PropertyAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Called to read a property from a specified target object.
|
MethodExecutor |
MethodResolver.resolve(EvaluationContext context,
java.lang.Object targetObject,
java.lang.String name,
java.util.List<TypeDescriptor> argumentTypes)
Within the supplied context determine a suitable method on the supplied object that
can handle the specified arguments.
|
java.lang.Object |
BeanResolver.resolve(EvaluationContext context,
java.lang.String beanName)
Look up a bean by the given name and return a corresponding instance for it.
|
ConstructorExecutor |
ConstructorResolver.resolve(EvaluationContext context,
java.lang.String typeName,
java.util.List<TypeDescriptor> argumentTypes)
Within the supplied context determine a suitable constructor on the supplied type
that can handle the specified arguments.
|
void |
Expression.setValue(EvaluationContext context,
java.lang.Object value)
Set this expression in the provided context to the value provided.
|
void |
Expression.setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value)
Set this expression in the provided context to the value provided.
|
void |
PropertyAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue)
Called to write to a property on a specified target object.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
ExpressionUtils.convertTypedValue(EvaluationContext context,
TypedValue typedValue,
java.lang.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.
|
java.lang.String |
LiteralExpression.getValue(EvaluationContext context) |
java.lang.String |
CompositeStringExpression.getValue(EvaluationContext context) |
<T> T |
LiteralExpression.getValue(EvaluationContext context,
java.lang.Class<T> expectedResultType) |
<T> T |
CompositeStringExpression.getValue(EvaluationContext context,
java.lang.Class<T> expectedResultType) |
java.lang.String |
LiteralExpression.getValue(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.String |
CompositeStringExpression.getValue(EvaluationContext context,
java.lang.Object rootObject) |
<T> T |
LiteralExpression.getValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
<T> T |
CompositeStringExpression.getValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
java.lang.Class<?> |
LiteralExpression.getValueType(EvaluationContext context) |
java.lang.Class<?> |
CompositeStringExpression.getValueType(EvaluationContext context) |
java.lang.Class<?> |
LiteralExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<?> |
CompositeStringExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
LiteralExpression.isWritable(EvaluationContext context) |
boolean |
CompositeStringExpression.isWritable(EvaluationContext context) |
boolean |
LiteralExpression.isWritable(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
CompositeStringExpression.isWritable(EvaluationContext context,
java.lang.Object rootObject) |
void |
LiteralExpression.setValue(EvaluationContext context,
java.lang.Object value) |
void |
CompositeStringExpression.setValue(EvaluationContext context,
java.lang.Object value) |
void |
LiteralExpression.setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value) |
void |
CompositeStringExpression.setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
ExpressionState.getEvaluationContext() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
CompiledExpression.getValue(java.lang.Object target,
EvaluationContext context)
Subclasses of CompiledExpression generated by SpelCompiler will provide an
implementation of this method.
|
Constructor and Description |
---|
ExpressionState(EvaluationContext context) |
ExpressionState(EvaluationContext context,
SpelParserConfiguration configuration) |
ExpressionState(EvaluationContext context,
TypedValue rootObject) |
ExpressionState(EvaluationContext context,
TypedValue rootObject,
SpelParserConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Operator.equalityCheck(EvaluationContext context,
java.lang.Object left,
java.lang.Object right)
Perform an equality check for the given operand values.
|
boolean |
PropertyOrFieldReference.isWritableProperty(java.lang.String name,
TypedValue contextObject,
EvaluationContext evalContext) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
SpelExpression.getEvaluationContext()
Return the default evaluation context that will be used if none is supplied on an evaluation call.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
SpelExpression.getValue(EvaluationContext context) |
<T> T |
SpelExpression.getValue(EvaluationContext context,
java.lang.Class<T> expectedResultType) |
java.lang.Object |
SpelExpression.getValue(EvaluationContext context,
java.lang.Object rootObject) |
<T> T |
SpelExpression.getValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Class<T> expectedResultType) |
java.lang.Class<?> |
SpelExpression.getValueType(EvaluationContext context) |
java.lang.Class<?> |
SpelExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
SpelExpression.isWritable(EvaluationContext context) |
boolean |
SpelExpression.isWritable(EvaluationContext context,
java.lang.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,
java.lang.Object value) |
void |
SpelExpression.setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleEvaluationContext
A basic implementation of
EvaluationContext that focuses on a subset
of essential SpEL features and customization options, targeting simple
condition evaluation and in particular data binding scenarios. |
class |
StandardEvaluationContext
A powerful and highly configurable
EvaluationContext implementation. |
Modifier and Type | Method and Description |
---|---|
boolean |
ReflectivePropertyAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
ReflectivePropertyAccessor.OptimalPropertyAccessor.canRead(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
ReflectivePropertyAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
ReflectivePropertyAccessor.OptimalPropertyAccessor.canWrite(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
PropertyAccessor |
ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Attempt to create an optimized property accessor tailored for a property of a
particular name on a particular class.
|
TypedValue |
ReflectiveConstructorExecutor.execute(EvaluationContext context,
java.lang.Object... arguments) |
TypedValue |
ReflectiveMethodExecutor.execute(EvaluationContext context,
java.lang.Object target,
java.lang.Object... arguments) |
TypedValue |
ReflectivePropertyAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
TypedValue |
ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
MethodExecutor |
ReflectiveMethodResolver.resolve(EvaluationContext context,
java.lang.Object targetObject,
java.lang.String name,
java.util.List<TypeDescriptor> argumentTypes)
Locate a method on a type.
|
MethodExecutor |
DataBindingMethodResolver.resolve(EvaluationContext context,
java.lang.Object targetObject,
java.lang.String name,
java.util.List<TypeDescriptor> argumentTypes) |
ConstructorExecutor |
ReflectiveConstructorResolver.resolve(EvaluationContext context,
java.lang.String typeName,
java.util.List<TypeDescriptor> argumentTypes)
Locate a constructor on the type.
|
void |
ReflectivePropertyAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
void |
ReflectivePropertyAccessor.OptimalPropertyAccessor.write(EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |