Operators
Most are listed here: Operator Overloading
TODO quick ref table of all operators on this page w/ links
TODO make this page a child of the User Guide
TODO the ! (not) operator; link to Groovy Truth documentation
Conditional Operators
- Elvis operator
- Safe navigation operator (?.)
- Ternary operator ( a ? b : c ) - see the section on conditional operators in the Java Tutorial
Collection-based Operators
- Spread Operator
- range ".." operator
Object- Related Operators
- invokeMethod and get/setProperty (the . operator)
- 'as' - "manual coercion" -
asType(t)method - Link to documentation on Groovy == (
equals()) behavior. (and mention "is" for identity)
Regular Expression Operators
- find (=~)
- match (==~)
Labels