You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/05/21 09:51:10 UTC
[2/4] incubator-groovy git commit: operator precedence doco (make a
little bit prettier)
operator precedence doco (make a little bit prettier)
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/5e7de109
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/5e7de109
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/5e7de109
Branch: refs/heads/GROOVY_2_4_X
Commit: 5e7de1091de18ebc5fbb3a6730c33ffa407dc5dc
Parents: 9857ebb
Author: Paul King <pa...@asert.com.au>
Authored: Mon May 18 12:02:06 2015 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Thu May 21 17:50:51 2015 +1000
----------------------------------------------------------------------
src/spec/doc/core-operators.adoc | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/5e7de109/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 2492aaa..be1b17b 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -648,20 +648,20 @@ The table below lists all groovy operators in order of precedence.
[options="header"]
|======================
|Level | Operator(s) | Name(s)
-| 1 | `new` `()` | object creation, explicit parentheses
-| | `()` `{}` `[]` | method call, closure, literal list/map
-| | `.` `.&` `.@` | member access, method closure, field/attribute access
-| | `?.` `*` `*.` `*:` | safe dereferencing, spread, spread-dot, spread-map
-| | `~` `!` `(type)` | bitwise negate/pattern, not, typecast
-| | [] ++ -- | list/map/array index, post inc/decrement
+| 1 | `new`   `()` | object creation, explicit parentheses
+| | `()`   `{}`   `[]` | method call, closure, literal list/map
+| | `.`   `.&`   `.@` | member access, method closure, field/attribute access
+| | `?.`   `\*`   `*.`   `*:` | safe dereferencing, spread, spread-dot, spread-map
+| | `~`   `!`   `(type)` | bitwise negate/pattern, not, typecast
+| | `[]`   `++`   `--` | list/map/array index, post inc/decrement
| 2 | `**` | power
-| 3 | `++` `--` `+` `-` | pre inc/decrement, unary plus, unary minus
-| 4 | `*` `/` `%` | multiply, div, modulo
-| 5 | `+` `-` | addition, subtraction
-| 6 | `<<` `>>` `>>>` `..` `..<` | left/right (unsigned) shift, inclusive/exclusive range
-| 7 | `<` `\<=` `>` `>=` `in` `instanceof` `as` | less/greater than/or equal, in, instanceof, type coercion
-| 8 | `==` `!=` `pass:[<=>]` | equals, not equals, compare to
-| | `=~` `==~` | regex find, regex match
+| 3 | `++`   `--`   `+`   `-` | pre inc/decrement, unary plus, unary minus
+| 4 | `*`   `/`   `%` | multiply, div, modulo
+| 5 | `+`   `-` | addition, subtraction
+| 6 | `<<`   `>>`   `>>>`   `..`   `..<` | left/right (unsigned) shift, inclusive/exclusive range
+| 7 | `<`   `\<=`   `>`   `>=`   `in`   `instanceof`   `as` | less/greater than/or equal, in, instanceof, type coercion
+| 8 | `==`   `!=`   `pass:[<=>]` | equals, not equals, compare to
+| | `=~`   `==~` | regex find, regex match
| 9 | `&` | binary/bitwise and
| 10 | `^` | binary/bitwise xor
| 11 | `\|` | binary/bitwise or
@@ -669,7 +669,7 @@ The table below lists all groovy operators in order of precedence.
| 13 | `\|\|` | logical or
| 14 | `? :` | ternary conditional
| | `?:` | elvis operator
-| 15 | `=` `\**=` `*=` `/=` `%=` `+=` `-=` `pass:[<<=]` `>>=` `>>>=` `&=` `^=` `\|=` | various assignments
+| 15 | `=`   `\**=`   `*=`   `/=`   `%=`   `+=`   `-=`   `pass:[<<=]`   `>>=`   `>>>=`   `&=`   `^=`   `\|=` | various assignments
|======================
[[Operator-Overloading]]