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.support |
SpEL's default implementations for various core abstractions.
|
Modifier and Type | Method and Description |
---|---|
TypedValue |
BeanFactoryAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
BeanExpressionContextAccessor.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.
|
TypedValue |
MapAccessor.read(EvaluationContext context,
Object target,
String name) |
Modifier and Type | Field and Description |
---|---|
static TypedValue |
TypedValue.NULL
TypedValue for null . |
Modifier and Type | Method and Description |
---|---|
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.
|
TypedValue |
EvaluationContext.getRootObject()
Return the default root context object against which unqualified
properties/methods/etc should be resolved.
|
TypedValue |
PropertyAccessor.read(EvaluationContext context,
Object target,
String name)
Called to read a property from a specified target object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static boolean |
ExpressionUtils.toBoolean(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a boolean using the supplied type converter.
|
static byte |
ExpressionUtils.toByte(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a byte using the supplied type converter.
|
static char |
ExpressionUtils.toChar(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a char using the supplied type converter.
|
static double |
ExpressionUtils.toDouble(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a double using the supplied type converter.
|
static float |
ExpressionUtils.toFloat(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a float using the supplied type converter.
|
static int |
ExpressionUtils.toInt(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to an int using the supplied type converter.
|
static long |
ExpressionUtils.toLong(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a long using the supplied type converter.
|
static short |
ExpressionUtils.toShort(TypeConverter typeConverter,
TypedValue typedValue)
Attempt to convert a typed value to a short using the supplied type converter.
|
Modifier and Type | Method and Description |
---|---|
TypedValue |
ExpressionState.getActiveContextObject()
The active context object is what unqualified references to properties/etc are resolved against.
|
TypedValue |
ExpressionState.getRootContextObject() |
TypedValue |
ExpressionState.getScopeRootContextObject() |
TypedValue |
SpelNode.getTypedValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state
and return the typed value.
|
TypedValue |
ExpressionState.lookupVariable(String name) |
TypedValue |
ExpressionState.operate(Operation op,
Object left,
Object right) |
Modifier and Type | Method and Description |
---|---|
Object |
ExpressionState.convertValue(TypedValue value,
TypeDescriptor targetTypeDescriptor) |
void |
ExpressionState.pushActiveContextObject(TypedValue obj) |
Constructor and Description |
---|
ExpressionState(EvaluationContext context,
TypedValue rootObject) |
ExpressionState(EvaluationContext context,
TypedValue rootObject,
SpelParserConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
abstract TypedValue |
Literal.getLiteralValue() |
TypedValue |
StringLiteral.getLiteralValue() |
TypedValue |
LongLiteral.getLiteralValue() |
TypedValue |
NullLiteral.getLiteralValue() |
TypedValue |
FloatLiteral.getLiteralValue() |
TypedValue |
RealLiteral.getLiteralValue() |
TypedValue |
IntLiteral.getLiteralValue() |
TypedValue |
SpelNodeImpl.getTypedValue(ExpressionState expressionState) |
TypedValue |
ValueRef.getValue()
Returns the value this ValueRef points to, it should not require expression
component re-evaluation.
|
TypedValue |
ValueRef.NullValueRef.getValue() |
TypedValue |
ValueRef.TypedValueHolderValueRef.getValue() |
TypedValue |
BeanReference.getValueInternal(ExpressionState state) |
TypedValue |
TypeReference.getValueInternal(ExpressionState state) |
TypedValue |
QualifiedIdentifier.getValueInternal(ExpressionState state) |
TypedValue |
Literal.getValueInternal(ExpressionState state) |
TypedValue |
OpPlus.getValueInternal(ExpressionState state) |
TypedValue |
OpMinus.getValueInternal(ExpressionState state) |
TypedValue |
OpDivide.getValueInternal(ExpressionState state) |
TypedValue |
Elvis.getValueInternal(ExpressionState state)
Evaluate the condition and if not null, return it.
|
TypedValue |
Indexer.getValueInternal(ExpressionState state) |
TypedValue |
VariableReference.getValueInternal(ExpressionState state) |
TypedValue |
OpModulus.getValueInternal(ExpressionState state) |
TypedValue |
Identifier.getValueInternal(ExpressionState state) |
TypedValue |
OperatorPower.getValueInternal(ExpressionState state) |
TypedValue |
Projection.getValueInternal(ExpressionState state) |
TypedValue |
InlineList.getValueInternal(ExpressionState expressionState) |
TypedValue |
ConstructorReference.getValueInternal(ExpressionState state)
Implements getValue() - delegating to the code for building an array or a simple type.
|
TypedValue |
PropertyOrFieldReference.getValueInternal(ExpressionState state) |
TypedValue |
InlineMap.getValueInternal(ExpressionState expressionState) |
TypedValue |
Selection.getValueInternal(ExpressionState state) |
TypedValue |
FunctionReference.getValueInternal(ExpressionState state) |
TypedValue |
CompoundExpression.getValueInternal(ExpressionState state)
Evaluates a compound expression.
|
abstract TypedValue |
SpelNodeImpl.getValueInternal(ExpressionState expressionState) |
TypedValue |
Ternary.getValueInternal(ExpressionState state)
Evaluate the condition and if true evaluate the first alternative, otherwise
evaluate the second alternative.
|
TypedValue |
MethodReference.getValueInternal(ExpressionState state) |
TypedValue |
OpInc.getValueInternal(ExpressionState state) |
TypedValue |
Assign.getValueInternal(ExpressionState state) |
TypedValue |
OpDec.getValueInternal(ExpressionState state) |
TypedValue |
OpAnd.getValueInternal(ExpressionState state) |
TypedValue |
OpMultiply.getValueInternal(ExpressionState state)
Implements the
multiply operator directly here for certain types
of supported operands and otherwise delegates to any registered overloader
for types not supported here. |
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyOrFieldReference.isWritableProperty(String name,
TypedValue contextObject,
EvaluationContext evalContext) |
Constructor and Description |
---|
TypedValueHolderValueRef(TypedValue typedValue,
SpelNodeImpl node) |
Modifier and Type | Class and Description |
---|---|
class |
BooleanTypedValue
A
TypedValue for booleans. |
Modifier and Type | Method and Description |
---|---|
TypedValue |
ReflectiveConstructorExecutor.execute(EvaluationContext context,
Object... arguments) |
TypedValue |
ReflectiveMethodExecutor.execute(EvaluationContext context,
Object target,
Object... arguments) |
TypedValue |
StandardEvaluationContext.getRootObject() |
TypedValue |
SimpleEvaluationContext.getRootObject()
Return the specified root object, if any.
|
TypedValue |
ReflectivePropertyAccessor.read(EvaluationContext context,
Object target,
String name) |
TypedValue |
ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context,
Object target,
String name) |