Browse Source

Polish SpEL documentation

pull/32008/head
Sam Brannen 2 years ago
parent
commit
f6e52900a2
  1. 8
      framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc
  2. 2
      framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc

8
framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc

@ -18,7 +18,7 @@ Java:: @@ -18,7 +18,7 @@ Java::
Expression exp = parser.parseExpression("'Hello World'"); // <1>
String message = (String) exp.getValue();
----
<1> The value of the message variable is `'Hello World'`.
<1> The value of the message variable is `"Hello World"`.
Kotlin::
+
@ -28,7 +28,7 @@ Kotlin:: @@ -28,7 +28,7 @@ Kotlin::
val exp = parser.parseExpression("'Hello World'") // <1>
val message = exp.value as String
----
<1> The value of the message variable is `'Hello World'`.
<1> The value of the message variable is `"Hello World"`.
======
The SpEL classes and interfaces you are most likely to use are located in the
@ -57,7 +57,7 @@ Java:: @@ -57,7 +57,7 @@ Java::
Expression exp = parser.parseExpression("'Hello World'.concat('!')"); // <1>
String message = (String) exp.getValue();
----
<1> The value of `message` is now 'Hello World!'.
<1> The value of `message` is now `"Hello World!"`.
Kotlin::
+
@ -67,7 +67,7 @@ Kotlin:: @@ -67,7 +67,7 @@ Kotlin::
val exp = parser.parseExpression("'Hello World'.concat('!')") // <1>
val message = exp.value as String
----
<1> The value of `message` is now 'Hello World!'.
<1> The value of `message` is now `"Hello World!"`.
======
The following example demonstrates how to access the `Bytes` JavaBean property of the

2
framework-docs/modules/ROOT/pages/core/expressions/language-ref/collection-projection.adoc

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
Projection lets a collection drive the evaluation of a sub-expression, and the result is
a new collection. The syntax for projection is `.![projectionExpression]`. For example,
suppose we have a list of inventors but want the list of cities where they were born.
Effectively, we want to evaluate 'placeOfBirth.city' for every entry in the inventor
Effectively, we want to evaluate `placeOfBirth.city` for every entry in the inventor
list. The following example uses projection to do so:
[tabs]

Loading…
Cancel
Save