File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
framework-docs/modules/ROOT/pages/core/expressions Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
Expression exp = parser.parseExpression("'Hello World'"); // <1>
19
19
String message = (String) exp.getValue();
20
20
----
21
- <1> The value of the message variable is `' Hello World' `.
21
+ <1> The value of the message variable is `" Hello World" `.
22
22
23
23
Kotlin::
24
24
+
@@ -28,7 +28,7 @@ Kotlin::
28
28
val exp = parser.parseExpression("'Hello World'") // <1>
29
29
val message = exp.value as String
30
30
----
31
- <1> The value of the message variable is `' Hello World' `.
31
+ <1> The value of the message variable is `" Hello World" `.
32
32
======
33
33
34
34
The SpEL classes and interfaces you are most likely to use are located in the
57
57
Expression exp = parser.parseExpression("'Hello World'.concat('!')"); // <1>
58
58
String message = (String) exp.getValue();
59
59
----
60
- <1> The value of `message` is now ' Hello World!' .
60
+ <1> The value of `message` is now `" Hello World!"` .
61
61
62
62
Kotlin::
63
63
+
@@ -67,7 +67,7 @@ Kotlin::
67
67
val exp = parser.parseExpression("'Hello World'.concat('!')") // <1>
68
68
val message = exp.value as String
69
69
----
70
- <1> The value of `message` is now ' Hello World!' .
70
+ <1> The value of `message` is now `" Hello World!"` .
71
71
======
72
72
73
73
The following example demonstrates how to access the `Bytes` JavaBean property of the
Original file line number Diff line number Diff line change 4
4
Projection lets a collection drive the evaluation of a sub-expression, and the result is
5
5
a new collection. The syntax for projection is `.![projectionExpression]`. For example,
6
6
suppose we have a list of inventors but want the list of cities where they were born.
7
- Effectively, we want to evaluate ' placeOfBirth.city' for every entry in the inventor
7
+ Effectively, we want to evaluate ` placeOfBirth.city` for every entry in the inventor
8
8
list. The following example uses projection to do so:
9
9
10
10
[tabs]
You can’t perform that action at this time.
0 commit comments