§5.4.1.(c) Role level guards

When a guard is specified at the role level, i.e., directly before the class body of a role class, it applies to all callin method bindings of the role class:

protected class MyRole
  when (value > MyTeam.this.threshold)
{
    int value;
    other class body declarations
}

The following values are within the scope of the predicate expression: