<< §5.4.1.(a) Method binding guards | ↑ Table of Contents ↑ | §5.4.1.(c) Role level guards >> |
§5.4.1.(b) Method guards
A method guard is similar to a method binding guard, but it applies
to all callin method bindings of this method.
A method guard is declared between the method signature and the method body:
void roleMethod(int ir) when (ir > MyTeam.this.threshold) { body statements }
<< §5.4.1.(a) Method binding guards | ↑ Table of Contents ↑ | §5.4.1.(c) Role level guards >> |