プライベート操作に static とタグを付けると、その操作は同じファイル内の他の操作によってアクセスできるようになります。
例えば、close() 操作が、プライベートに設定されていると Valve オブジェクトの実装ファイルの前方宣言のセクションに次の宣言が生成されます。
/* Forward declaration of protected methods */ /*## operation close() *¥ static void close(Valve* const me);
プライベート操作の定義は、同じファイル内のメソッド実装セクションに後で生成されます。
/* Methods implementation */
static void close(Valve* const me) {
NOTIFY_OPERATION(me, &me, NULL, Valve, close, close(),
0, Default_Valve_close_SERIALIZE);
/*#[ operation close() */
/*#]*/
}
C_CG::Operation::ProtectedName プロパティーを使用してプライベート操作の名前の生成方法を制御できます。 このプロパティー $opName のデフォルト値では、プライベート操作にユーザーが割り当てた名前 (myName() など) を使用します。