コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >IConnectionChecker >doSafetyChecks
IConnectionChecker.doSafetyChecks() メソッド
所定の接続が安全であること、すなわち、Blockly の基本的な前提(自己接続がないなど)に違反していないことを確認します。
署名:
doSafetyChecks(a: Connection | null, b: Connection | null): number;
パラメータ
パラメータ |
型 |
説明 |
a |
つながり |null |
確認する最初の接続。 |
b |
つながり |null |
確認する接続の 2 番目のもの。 |
戻り値:
数値
この接続が安全または安全でない理由を示す列挙型。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-28 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-28 UTC。"],[],["The `doSafetyChecks` method, part of the `IConnectionChecker` interface, assesses the safety of connecting two given connections (`a` and `b`). It takes two `Connection` objects (or null) as input. The method then verifies if the connection would violate core Blockly rules, like self-connections. The output, returned as a number, represents an enum indicating if the connection is deemed safe or unsafe and the reason behind the assessment.\n"]]