Package | Description |
---|---|
org.springframework.context.expression |
Expression parsing support within a Spring application context.
|
org.springframework.expression | |
org.springframework.expression.common | |
org.springframework.expression.spel | |
org.springframework.expression.spel.ast | |
org.springframework.expression.spel.standard | |
org.springframework.expression.spel.support |
Modifier and Type | Method and Description |
---|---|
boolean |
BeanExpressionContextAccessor.canRead(EvaluationContext context,
Object target,
String name) |
boolean |
BeanFactoryAccessor.canRead(EvaluationContext context,
Object target,
String name) |
boolean |
MapAccessor.canRead(EvaluationContext context,
Object target,
String name) |
boolean |
EnvironmentAccessor.canRead(EvaluationContext context,
Object target,
String name)
Can read any
Environment , thus always returns true. |
boolean |
BeanExpressionContextAccessor.canWrite(EvaluationContext context,
Object target,
String name) |
boolean |
BeanFactoryAccessor.canWrite(EvaluationContext context,
Object target,
String name) |
boolean |
MapAccessor.canWrite(EvaluationContext context,
Object target,
String name) |
boolean |
EnvironmentAccessor.canWrite(EvaluationContext context,
Object target,
String name)
Read-only: returns
false . |
TypedValue |
BeanExpressionContextAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
BeanFactoryAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
MapAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
EnvironmentAccessor.read(EvaluationContext context,
Object target,
String name)
Access the given target object by resolving the given property name against the given target
environment.
|
Object |
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 |
MapAccessor.write(EvaluationContext context,
Object target,
String name,
Object newValue) |
void |
EnvironmentAccessor.write(EvaluationContext context,
Object target,
String name,
Object newValue)
Read-only: no-op.
|
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
TypedValue |
ConstructorExecutor.execute(EvaluationContext context,
Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
TypedValue |
MethodExecutor.execute(EvaluationContext context,
Object target,
Object... arguments)
Execute a command using the specified arguments, and using the specified expression state.
|
Object |
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 the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type.
|
Object |
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 the expression in a specified context which can resolve references to properties, methods, types, etc -
the type of the evaluation result is expected to be of a particular class and an exception will be thrown if it
is not and cannot be converted to that type.
|
Class |
Expression.getValueType(EvaluationContext context)
Returns the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object)
method for the given context. |
Class |
Expression.getValueType(EvaluationContext context,
Object rootObject)
Returns the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object)
method for the given context. |
TypeDescriptor |
Expression.getValueTypeDescriptor(EvaluationContext context)
Returns the most general type that can be passed to the
Expression.setValue(EvaluationContext, Object)
method for the given context. |
TypeDescriptor |
Expression.getValueTypeDescriptor(EvaluationContext context,
Object rootObject)
Returns the most general type that can be passed to the
Expression.setValue(EvaluationContext, 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,
Object rootObject)
Determine if an expression can be written to, i.e.
|
TypedValue |
PropertyAccessor.read(EvaluationContext context,
Object target,
String name)
Called to read a property from a specified target object.
|
MethodExecutor |
MethodResolver.resolve(EvaluationContext context,
Object targetObject,
String name,
List<TypeDescriptor> argumentTypes)
Within the supplied context determine a suitable method on the supplied object that
can handle the specified arguments.
|
Object |
BeanResolver.resolve(EvaluationContext context,
String beanName)
Look up the named bean and return it.
|
ConstructorExecutor |
ConstructorResolver.resolve(EvaluationContext context,
String typeName,
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,
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.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
ExpressionUtils.convert(EvaluationContext context,
Object value,
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.
|
static <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.
|
String |
LiteralExpression.getValue(EvaluationContext context) |
String |
CompositeStringExpression.getValue(EvaluationContext context) |
<T> T |
LiteralExpression.getValue(EvaluationContext context,
Class<T> expectedResultType) |
<T> T |
CompositeStringExpression.getValue(EvaluationContext context,
Class<T> expectedResultType) |
String |
LiteralExpression.getValue(EvaluationContext context,
Object rootObject) |
String |
CompositeStringExpression.getValue(EvaluationContext context,
Object rootObject) |
<T> T |
LiteralExpression.getValue(EvaluationContext context,
Object rootObject,
Class<T> desiredResultType) |
<T> T |
CompositeStringExpression.getValue(EvaluationContext context,
Object rootObject,
Class<T> desiredResultType) |
Class |
LiteralExpression.getValueType(EvaluationContext context) |
Class |
CompositeStringExpression.getValueType(EvaluationContext context) |
Class |
LiteralExpression.getValueType(EvaluationContext context,
Object rootObject) |
Class |
CompositeStringExpression.getValueType(EvaluationContext context,
Object rootObject) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(EvaluationContext context,
Object rootObject) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context,
Object rootObject) |
boolean |
LiteralExpression.isWritable(EvaluationContext context) |
boolean |
CompositeStringExpression.isWritable(EvaluationContext context) |
boolean |
LiteralExpression.isWritable(EvaluationContext context,
Object rootObject) |
boolean |
CompositeStringExpression.isWritable(EvaluationContext context,
Object rootObject) |
void |
LiteralExpression.setValue(EvaluationContext context,
Object value) |
void |
CompositeStringExpression.setValue(EvaluationContext context,
Object value) |
void |
LiteralExpression.setValue(EvaluationContext context,
Object rootObject,
Object value) |
void |
CompositeStringExpression.setValue(EvaluationContext context,
Object rootObject,
Object value) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
ExpressionState.getEvaluationContext() |
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 |
---|---|
boolean |
PropertyOrFieldReference.isWritableProperty(String name,
TypedValue contextObject,
EvaluationContext eContext) |
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 |
---|---|
Object |
SpelExpression.getValue(EvaluationContext context) |
<T> T |
SpelExpression.getValue(EvaluationContext context,
Class<T> expectedResultType) |
Object |
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) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context,
Object rootObject) |
boolean |
SpelExpression.isWritable(EvaluationContext context) |
boolean |
SpelExpression.isWritable(EvaluationContext context,
Object rootObject) |
void |
SpelExpression.setEvaluationContext(EvaluationContext context)
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) |
Modifier and Type | Class and Description |
---|---|
class |
StandardEvaluationContext
Provides a default EvaluationContext implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ReflectivePropertyAccessor.canRead(EvaluationContext context,
Object target,
String name) |
boolean |
ReflectivePropertyAccessor.canWrite(EvaluationContext context,
Object target,
String name) |
PropertyAccessor |
ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext eContext,
Object target,
String name)
Attempt to create an optimized property accessor tailored for a property of a particular name on
a particular class.
|
TypedValue |
ReflectivePropertyAccessor.read(EvaluationContext context,
Object target,
String name) |
MethodExecutor |
ReflectiveMethodResolver.resolve(EvaluationContext context,
Object targetObject,
String name,
List<TypeDescriptor> argumentTypes)
Locate a method on a type.
|
ConstructorExecutor |
ReflectiveConstructorResolver.resolve(EvaluationContext context,
String typename,
List<TypeDescriptor> argumentTypes)
Locate a constructor on the type.
|
void |
ReflectivePropertyAccessor.write(EvaluationContext context,
Object target,
String name,
Object newValue) |
Copyright © 2015. All rights reserved.