You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2016/04/28 12:25:05 UTC

svn commit: r1741404 - /commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml

Author: henrib
Date: Thu Apr 28 10:25:04 2016
New Revision: 1741404

URL: http://svn.apache.org/viewvc?rev=1741404&view=rev
Log:
JEXL:
Forgot to mention side-effect operators (+=, etc...)

Modified:
    commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml

Modified: commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml?rev=1741404&r1=1741403&r2=1741404&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml (original)
+++ commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml Thu Apr 28 10:25:04 2016
@@ -638,6 +638,25 @@
                     </td>
                 </tr>
                 <tr>
+                    <td>Side-effect operators</td>
+                    <td>
+                        Some operators exist in side-effect forms.
+                        Their default behavior is to execute the operator and assign the left hand side with the result.
+                        For instance <code>a += 2</code> is equivalent to <code>a = a + 2</code>
+                        The list of operators is:
+                        <ul>
+                            <li>+=</li>
+                            <li>-=</li>
+                            <li>*=</li>
+                            <li>/=</li>
+                            <li>%=</li>
+                            <li>&amp;=</li>
+                            <li>|=</li>
+                            <li>^=</li>
+                        </ul>
+                    </td>
+                </tr>
+                <tr>
                     <td>Negation</td>
                     <td>
                         The unary <code>-</code> operator is used.
@@ -653,7 +672,7 @@
                     </td>
                 </tr>
                 <tr>
-                    <td>HashMap access</td>
+                    <td>Map access</td>
                     <td>
                         Map elements are accessed using square brackets, e.g.
                         <source>map[0]; map['name']; map[var];</source>