You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/08/06 14:21:15 UTC
svn commit: r801620 -
/commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
Author: sebb
Date: Thu Aug 6 12:21:14 2009
New Revision: 801620
URL: http://svn.apache.org/viewvc?rev=801620&view=rev
Log:
JEXL-43 add docn for Map access
Modified:
commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
Modified: commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml?rev=801620&r1=801619&r2=801620&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml (original)
+++ commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml Thu Aug 6 12:21:14 2009
@@ -426,6 +426,16 @@
<source>arr1[0]</source> and <source>arr1.0</source> are equivalent
</td>
</tr>
+ <tr>
+ <td>HashMap access</td>
+ <td>
+ Map elements are accessed using square brackets, e.g.
+ <source>map[0]; map['name']; map[var];</source>
+ Note that <source>map['7']</source> and <source>map[7]</source> refer to different elements.
+ Map elements with a numeric key may also be accessed using a dotted numeral, e.g.
+ <source>map[0]</source> and <source>map.0</source> are equivalent.
+ </td>
+ </tr>
</table>
</section>
<section name="Conditional">