@@ -803,22 +803,30 @@ expressions:
803
803
.Java
804
804
----
805
805
// evals to 1856
806
- int year = (Integer) parser.parseExpression("Birthdate.Year + 1900").getValue(context);
806
+ int year = (Integer) parser.parseExpression("birthdate.year + 1900").getValue(context);
807
807
808
- String city = (String) parser.parseExpression("placeOfBirth.City ").getValue(context);
808
+ String city = (String) parser.parseExpression("placeOfBirth.city ").getValue(context);
809
809
----
810
810
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
811
811
.Kotlin
812
812
----
813
813
// evals to 1856
814
- val year = parser.parseExpression("Birthdate.Year + 1900").getValue(context) as Int
814
+ val year = parser.parseExpression("birthdate.year + 1900").getValue(context) as Int
815
815
816
- val city = parser.parseExpression("placeOfBirth.City ").getValue(context) as String
816
+ val city = parser.parseExpression("placeOfBirth.city ").getValue(context) as String
817
817
----
818
818
819
- Case insensitivity is allowed for the first letter of property names. The contents of
820
- arrays and lists are obtained by using square bracket notation, as the following example
821
- shows:
819
+ [NOTE]
820
+ ====
821
+ Case insensitivity is allowed for the first letter of property names. Thus, the
822
+ expressions in the above example may be written as `Birthdate.Year + 1900` and
823
+ `PlaceOfBirth.City`, respectively. In addition, properties may optionally be accessed via
824
+ method invocations -- for example, `getPlaceOfBirth().getCity()` instead of
825
+ `placeOfBirth.city`.
826
+ ====
827
+
828
+ The contents of arrays and lists are obtained by using square bracket notation, as the
829
+ following example shows:
822
830
823
831
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
824
832
.Java
0 commit comments