blockly > ASTNode > createConnectionNode
Methode ASTNode.createConnectionNode()
Erstellt einen AST-Knoten, der auf eine Verbindung verweist. Wenn die Verbindung eine übergeordnete Eingabe hat, erstellen Sie einen AST-Knoten des Typs „input“, der die Verbindung enthält.
Unterschrift:
static createConnectionNode(connection: Connection): ASTNode | null;
Parameter
Parameter |
Typ |
Beschreibung |
Verbindung |
Verbindung |
Dies ist die Verbindung, auf die der Knoten verweist. |
Gibt zurück:
ASTNode | null
Ein AST-Knoten, der auf eine Verbindung verweist.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-09-11 (UTC).
[null,null,["Zuletzt aktualisiert: 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."]]],[]]