Package | Description |
---|---|
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 |
ExpressionInvocationTargetException
This exception wraps (as cause) a checked exception thrown by some method that SpEL
invokes.
|
Modifier and Type | Method and Description |
---|---|
int |
TypeComparator.compare(java.lang.Object firstObject,
java.lang.Object secondObject)
Compare two given objects.
|
java.lang.Class<?> |
TypeLocator.findType(java.lang.String typeName)
Find a type by name.
|
java.lang.Object |
Expression.getValue()
Evaluate this expression in the default standard context.
|
<T> T |
Expression.getValue(java.lang.Class<T> desiredResultType)
Evaluate the expression in the default context.
|
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.Object |
Expression.getValue(java.lang.Object rootObject)
Evaluate this expression against the specified root object.
|
<T> T |
Expression.getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType)
Evaluate the expression in the default context against the specified root
object.
|
java.lang.Class<?> |
Expression.getValueType()
Return the most general type that can be passed to a
Expression.setValue(java.lang.Object, java.lang.Object)
method using the default context. |
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. |
java.lang.Class<?> |
Expression.getValueType(java.lang.Object rootObject)
Return the most general type that can be passed to the
Expression.setValue(Object, Object) method using the default context. |
TypeDescriptor |
Expression.getValueTypeDescriptor()
Return the most general type that can be passed to a
Expression.setValue(java.lang.Object, java.lang.Object)
method using the default 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. |
TypeDescriptor |
Expression.getValueTypeDescriptor(java.lang.Object rootObject)
Return the most general type that can be passed to the
Expression.setValue(Object, Object) method using the default 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.
|
boolean |
Expression.isWritable(java.lang.Object rootObject)
Determine if an expression can be written to, i.e.
|
java.lang.Object |
OperatorOverloader.operate(Operation operation,
java.lang.Object leftOperand,
java.lang.Object rightOperand)
Execute the specified operation on two operands, returning a result.
|
boolean |
OperatorOverloader.overridesOperation(Operation operation,
java.lang.Object leftOperand,
java.lang.Object rightOperand)
Return true if the operator overloader supports the specified operation
between the two operands and so should be invoked to handle it.
|
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 |
Expression.setValue(java.lang.Object rootObject,
java.lang.Object value)
Set this expression in the provided context to the value provided.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
CompositeStringExpression.getValue() |
<T> T |
LiteralExpression.getValue(java.lang.Class<T> expectedResultType) |
<T> T |
CompositeStringExpression.getValue(java.lang.Class<T> expectedResultType) |
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.String |
CompositeStringExpression.getValue(java.lang.Object rootObject) |
<T> T |
LiteralExpression.getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
<T> T |
CompositeStringExpression.getValue(java.lang.Object rootObject,
java.lang.Class<T> desiredResultType) |
java.lang.Class<?> |
LiteralExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<?> |
CompositeStringExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<?> |
LiteralExpression.getValueType(java.lang.Object rootObject) |
java.lang.Class<?> |
CompositeStringExpression.getValueType(java.lang.Object rootObject) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
LiteralExpression.getValueTypeDescriptor(java.lang.Object rootObject) |
TypeDescriptor |
CompositeStringExpression.getValueTypeDescriptor(java.lang.Object rootObject) |
boolean |
LiteralExpression.isWritable(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
CompositeStringExpression.isWritable(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
LiteralExpression.isWritable(java.lang.Object rootObject) |
boolean |
CompositeStringExpression.isWritable(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) |
void |
LiteralExpression.setValue(java.lang.Object rootObject,
java.lang.Object value) |
void |
CompositeStringExpression.setValue(java.lang.Object rootObject,
java.lang.Object value) |
Modifier and Type | Class and Description |
---|---|
class |
SpelEvaluationException
Root exception for Spring EL related exceptions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ExpressionState.convertValue(java.lang.Object value,
TypeDescriptor targetTypeDescriptor) |
java.lang.Object |
ExpressionState.convertValue(TypedValue value,
TypeDescriptor targetTypeDescriptor) |
java.lang.Class<?> |
ExpressionState.findType(java.lang.String type) |
TypedValue |
SpelNode.getTypedValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state
and return the typed value.
|
java.lang.Object |
SpelNode.getValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state
and return the value.
|
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.
|
boolean |
SpelNode.isWritable(ExpressionState expressionState)
Determine if this expression node will support a setValue() call.
|
TypedValue |
ExpressionState.operate(Operation op,
java.lang.Object left,
java.lang.Object right) |
void |
SpelNode.setValue(ExpressionState expressionState,
java.lang.Object newValue)
Evaluate the expression to a node and then set the new value on that node.
|
Modifier and Type | Method and Description |
---|---|
TypedValue |
SpelNodeImpl.getTypedValue(ExpressionState expressionState) |
java.lang.Object |
SpelNodeImpl.getValue(ExpressionState expressionState) |
protected <T> T |
SpelNodeImpl.getValue(ExpressionState state,
java.lang.Class<T> desiredReturnType) |
TypedValue |
OpAnd.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OpGE.getValueInternal(ExpressionState state) |
TypedValue |
OpDec.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. |
TypedValue |
OperatorPower.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OperatorBetween.getValueInternal(ExpressionState state)
Returns a boolean based on whether a value is in the range expressed.
|
TypedValue |
Elvis.getValueInternal(ExpressionState state)
Evaluate the condition and if not null, return it.
|
TypedValue |
OpPlus.getValueInternal(ExpressionState state) |
TypedValue |
OpDivide.getValueInternal(ExpressionState state) |
TypedValue |
TypeReference.getValueInternal(ExpressionState state) |
TypedValue |
InlineList.getValueInternal(ExpressionState expressionState) |
TypedValue |
BeanReference.getValueInternal(ExpressionState state) |
abstract TypedValue |
SpelNodeImpl.getValueInternal(ExpressionState expressionState) |
BooleanTypedValue |
OpEQ.getValueInternal(ExpressionState state) |
TypedValue |
QualifiedIdentifier.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OperatorMatches.getValueInternal(ExpressionState state)
Check the first operand matches the regex specified as the second operand.
|
TypedValue |
CompoundExpression.getValueInternal(ExpressionState state)
Evaluates a compound expression.
|
BooleanTypedValue |
OperatorNot.getValueInternal(ExpressionState state) |
TypedValue |
Assign.getValueInternal(ExpressionState state) |
TypedValue |
OpInc.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OpOr.getValueInternal(ExpressionState state) |
TypedValue |
Indexer.getValueInternal(ExpressionState state) |
TypedValue |
OpModulus.getValueInternal(ExpressionState state) |
TypedValue |
Ternary.getValueInternal(ExpressionState state)
Evaluate the condition and if true evaluate the first alternative, otherwise
evaluate the second alternative.
|
TypedValue |
InlineMap.getValueInternal(ExpressionState expressionState) |
TypedValue |
OpMinus.getValueInternal(ExpressionState state) |
TypedValue |
ConstructorReference.getValueInternal(ExpressionState state)
Implements getValue() - delegating to the code for building an array or a simple type.
|
TypedValue |
Selection.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OperatorInstanceof.getValueInternal(ExpressionState state)
Compare the left operand to see it is an instance of the type specified as the
right operand.
|
BooleanTypedValue |
OpGT.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OpNE.getValueInternal(ExpressionState state) |
TypedValue |
PropertyOrFieldReference.getValueInternal(ExpressionState state) |
TypedValue |
Projection.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OpLE.getValueInternal(ExpressionState state) |
TypedValue |
MethodReference.getValueInternal(ExpressionState state) |
BooleanTypedValue |
OpLT.getValueInternal(ExpressionState state) |
TypedValue |
FunctionReference.getValueInternal(ExpressionState state) |
protected ValueRef |
SpelNodeImpl.getValueRef(ExpressionState state) |
protected ValueRef |
CompoundExpression.getValueRef(ExpressionState state) |
protected ValueRef |
Indexer.getValueRef(ExpressionState state) |
protected ValueRef |
Selection.getValueRef(ExpressionState state) |
ValueRef |
PropertyOrFieldReference.getValueRef(ExpressionState state) |
protected ValueRef |
Projection.getValueRef(ExpressionState state) |
protected ValueRef |
MethodReference.getValueRef(ExpressionState state) |
boolean |
SpelNodeImpl.isWritable(ExpressionState expressionState) |
boolean |
CompoundExpression.isWritable(ExpressionState state) |
boolean |
PropertyOrFieldReference.isWritable(ExpressionState state) |
boolean |
PropertyOrFieldReference.isWritableProperty(java.lang.String name,
TypedValue contextObject,
EvaluationContext evalContext) |
void |
SpelNodeImpl.setValue(ExpressionState expressionState,
java.lang.Object newValue) |
void |
CompoundExpression.setValue(ExpressionState state,
java.lang.Object value) |
void |
Indexer.setValue(ExpressionState state,
java.lang.Object newValue) |
void |
PropertyOrFieldReference.setValue(ExpressionState state,
java.lang.Object newValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
SpelExpression.getValue() |
<T> T |
SpelExpression.getValue(java.lang.Class<T> expectedResultType) |
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.Object |
SpelExpression.getValue(java.lang.Object rootObject) |
<T> T |
SpelExpression.getValue(java.lang.Object rootObject,
java.lang.Class<T> expectedResultType) |
java.lang.Class<?> |
SpelExpression.getValueType() |
java.lang.Class<?> |
SpelExpression.getValueType(EvaluationContext context) |
java.lang.Class<?> |
SpelExpression.getValueType(EvaluationContext context,
java.lang.Object rootObject) |
java.lang.Class<?> |
SpelExpression.getValueType(java.lang.Object rootObject) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor() |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(EvaluationContext context,
java.lang.Object rootObject) |
TypeDescriptor |
SpelExpression.getValueTypeDescriptor(java.lang.Object rootObject) |
boolean |
SpelExpression.isWritable(EvaluationContext context) |
boolean |
SpelExpression.isWritable(EvaluationContext context,
java.lang.Object rootObject) |
boolean |
SpelExpression.isWritable(java.lang.Object rootObject) |
void |
SpelExpression.setValue(EvaluationContext context,
java.lang.Object value) |
void |
SpelExpression.setValue(EvaluationContext context,
java.lang.Object rootObject,
java.lang.Object value) |
void |
SpelExpression.setValue(java.lang.Object rootObject,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
StandardTypeLocator.findType(java.lang.String typeName)
Find a (possibly unqualified) type reference - first using the type name as-is,
then trying any registered prefixes if the type name cannot be found.
|
java.lang.Object |
StandardOperatorOverloader.operate(Operation operation,
java.lang.Object leftOperand,
java.lang.Object rightOperand) |
boolean |
StandardOperatorOverloader.overridesOperation(Operation operation,
java.lang.Object leftOperand,
java.lang.Object rightOperand) |