Repository: incubator-groovy Updated Branches: refs/heads/master cdcac9830 -> 7c5f8d3ab
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/7c5f8d3a Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/7c5f8d3a Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/7c5f8d3a Branch: refs/heads/master Commit: 7c5f8d3ab07055a2393c1d78e60165a21e292433 Parents: cdcac98 Author: Paul King <pa...@asert.com.au> Authored: Mon May 18 12:02:06 2015 +1000 Committer: Paul King <pa...@asert.com.au> Committed: Mon May 18 12:02:06 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/7c5f8d3a/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]]