playedBy,
completion will also generate an "import base ..." declaration, if needed.
After pressing Ctrl-space, selection of the desired binding happens in three steps:
| |
| a) Select a base method |
|
| b) Change the role method name if desired. |
|
| c) Select the binding kind. |
|
Two additional kinds of callouts can be generated, by typing "get" or "set" before invoking completion:
after typing get
| Create a callout to field getter. |
after typing set
| Create a callout to field setter. |
If a callin or callout binding has been typed up-to and including the "<-" or "->" token, completion can be used to expand the right hand side specifying the base method or field. For callin bindings you may optionally first type the callin modifier (before, replace or after). Otherwise you will be prompted for the desired callin modifier.
In this case the proposed modifier is inferred to match the bound base method:
| regular method | Default is before (also after is legal).
|
callin method | Default is replace
|
Normally, after "->" (as well as for "<-") completion will try to expand a base method, if for a callout one of the modifiers get or set has been typed, a field is searched instead.
callin modifier, to match the binding's callin modifier.
within (Expression).