調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >ASTNode >createConnectionNode
ASTNode.createConnectionNode() メソッド
接続を指す AST ノードを作成します。接続に親入力がある場合は、接続を保持する入力タイプの AST ノードを作成します。
署名:
static createConnectionNode(connection: Connection): ASTNode | null;
パラメータ
パラメータ |
型 |
説明 |
connection |
接続 |
これはノードが指す接続です。 |
戻り値:
ASTNode |null
接続を指す AST ノード。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-11 UTC。
[null,null,["最終更新日 2024-09-11 UTC。"],[[["The `ASTNode.createConnectionNode()` method creates an AST node that references a specific connection within a Blockly workspace."],["If the target connection is part of a parent input, the method generates an input-type AST node to encapsulate the connection."],["The method accepts a `Connection` object as input, representing the connection to be associated with the new AST node."],["An `ASTNode` object, or `null` if node creation fails, is returned by the method, representing the created node pointing to the connection."]]],[]]